Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: AZ on October 12, 2019, 04:42:01 pm

Title: Tool's output
Post by: AZ on October 12, 2019, 04:42:01 pm
hello,
 i need to monitor the tty. for this i put together a small shell script (~/bin/monitor), that calls miniterm.py with a ${PROJECT_DIR} where it parses and pics port and baud params for the execution of miniterm.py :
Code
~/bin/monitor ${PROJECT_DIR}

monitor:
Code
//the boilerplate code removed
miniterm.py $baud $port

the challenge :
 a. when the xterm opens up and launches the "monitor", I can't select and copy the output to a buffer.
 b. as a workaround i thought i can redirect the output from the tool into a log. what params can i use in the "Tools"?
 c. ideally, i'd like to have the "monitor" to run one of the CB output windows ( like build log, valgrind etc). How can this be achieved?


My attempt to use "Tools+" and specifying the output to "Tools output window", got me :
Code
execvp(~/bin/monitor, /home/az/Work/Arduino/Proj/) failed with error 2!

/code]



thank you.