Execute programs in multiple terminals using a Shell Script
Hello all,
I have three java programs to wait on three sockets. I want to write a Shell Script to execute all three at once in three different terminals. Making the backgroung won't help as I want to track the outputs of three programs separately. Is this possible? Or is there any other way to do this? Please help! Thanks in advance |
You could redirect the output of each to a file and monitor it with something like tail:
Code:
program1 >> program1.log 2>&1 & Code:
tail -f programX.log Alternatively you could have a script launch a new instance of your terminal emulator of choice for each program: Code:
konsole --noclose -e program1 & |
Thanks timothy! But I solved the problem using 'gnome-terminal':
Quote:
|
All times are GMT -5. The time now is 08:45 PM. |