Hi, I need some help with sending commands to multiple xterms. What I do is ssh -Y to a remote box, and then open up 4 shells (csh) and on each one I run a different program in sequence -- one of them has 2, the first of which goes into the background and after you hit "enter" or "return" you get the prompt back, then you go to a different shell to run the next program in the sequence, then come back and start the second program in that one.
I've made a script to open the shells I need after I'm ssh'ed into the remote box (basically "xterm -title myname &" 4 times), but what I'd like to do here is not just open the windows, but start the programs in each one instead of having to manually go in and start each one. The remote box is red hat, and other users will access it from red hat, although I am accessing it from mac (tiger). Programs don't take any arguments. Not sure how I can do this, so any advice would be appreciated.