I want to ssh to a server from that server I have to ssh to 5 different nodes and then run 5 different program one on each
my approach:
Code:
xterm -e "ssh -t user@server ssh node0 ./x1.sh node0 1" &
xterm -e "ssh -t user@server ssh node1 ./x1.sh node1 1" &
xterm -e "ssh -t user@server ssh node2 ./x1.sh node2 1" &
xterm -e "ssh -t user@server ssh node3 ./x1.sh node3 1" &
xterm -e "ssh -t user@server ssh node4 ./x1.sh node4 1"
*x1.sh runs a server or client according to the parameter passed to it.
problem with this code
it opens a window do something and just close it
requirement
i should see first 4 windows and should be able to type on 5 window
with xterm i am not able to get it.
can anyone help me?