shell script ...

Soldato
Joined
9 Dec 2004
Posts
5,700
Location
Dorset
Hey all :)

I have a very very simply shell script running the zebra and ospfd daemons. As some may know - if you run these from the commandline they debug output onto the terminal.

Is there any way that I can make my script open a terminal and run the command from within?

i.e;

zebra -f /etc/quagga/zebra.conf
ospfd -f /etc/quagga/ospfd.conf

and in pseudo;

zebra -f /etc/quagga/zebra.conf | display in new xterm
ospfd -f /etc/quagga/ospfd.conf | display in new xterm

Thanks for any suggestions...
 
I'm no expert, but wouldn't:

xterm -e zebra -f /etc/quagga/zebra.conf
xterm -e ospfd -f /etc/quagga/ospfd.conf

work? You will have to use two separate scripts, one for each command as the second will always wait for the first to finish executing.
 
Back
Top Bottom