I have a script that I want to monitor its results and write them to a log file. I run the following:gnome-terminal -x bash -c script logfile.log; ssh user@IPBut this command execute first the first command and after that the 2nd. Can I do them like in series without any input from me? to execute first the script command to write the logfile I want and after that the ssh without I need to do something else?I tried the way it is and it doesn't do what I want.
Open a new terminal, monitor it and execute a script
shell script;scripting;gnome terminal;typescript
Have you tried having script be the outer partgnome-terminal -x script -c ssh user@IP logfile.log