How to create a shell script to launch 3 terminals and execute a set of commands in each? -


currently, open 3 terminals ('openocd session','telnet session' & 'gdb session') , execute 'a set of commands' in each terminal every time flash image on target.

is possible put in 1 shell script file , run @ once? (commands on each terminal not dependent on others; except terminals should opened in order mentioned above)

thanks in advance !

which terminal using?

a terminal xterm can start program instead of shell. run

xterm -e 'command args ...' 

i use start email client:

xterm -e mutt 

if use different terminal, consult manual page. i'm pretty sure there's equivalent -e.


Comments