New answers tagged


You can simplify your solution so that you only need to specify the hostname once. The script can set the prompt directly with the echo command and then run the ping you want. $ cat #!/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 ./ $varname (make sure ...


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