Multiple commands using xterm?
Is there a way to run multiple commands using xterm?
This is what I'm trying to do... Open a new window and ssh into the machine spc10 Code:
xterm -e "ssh spc10; bash" & Code:
xterm -e "ssh spc10; . script.sh; bash" & Thanks David |
Ummm ... that isn't going to fly in the first place, because
the ; tells the *local* shell to execute the . and so forth *after* the ssh connection has been torn down again. |
I got it to work. The solution...
Code:
xterm -e "ssh spc10 '. script.sh'; bash" & |
All times are GMT -5. The time now is 11:40 AM. |