New answers tagged

1

You can simplify your solution so that you only need to specify the hostname once. The test.sh script can set the prompt directly with the echo command and then run the ping you want. $ cat test.sh #!/bin/bash echo -ne "\033]0;$1\007" script -a -c "ping $1" $PATH_REPORT/$1.log Now you can call this with gnome-terminal -x ./test.sh $varname (make sure ...


5

Have you tried having script be the outer part gnome-terminal -x script -c "ssh user@IP" logfile.log



Top 50 recent answers are included