Looping gnome?
Posted: 2019-02-16 18:47
Hi folks.
If I type:
a terminal opens, the command runs and I see output.
If I put the following in a script ($line is the ip address in the nodes file):
a terminal opens, starts to run, then closes after the sleep.
How can I make this loop run so each gnome will stay open and complete the task?
Many thanks.
If I type:
Code: Select all
gnome-terminal -e 'ssh user@192.168.1.1 sudo apt-get -y update'
If I put the following in a script ($line is the ip address in the nodes file):
Code: Select all
while read line; do
gnome-terminal -e 'ssh user@'$line' sudo apt-get -y upgrade'
sleep .5
done </mybin/nodes
How can I make this loop run so each gnome will stay open and complete the task?
Many thanks.