SSH remote command withouth output
Hello all,
I want to run a script on a remote host with ssh, the script takes a long time, so I dont want ssh to show me the output of the command, I just want to run it, get my local prompt back, and leave it run it remotely... How can that be done? |
I use "at" for that, as in
at -f script.file now Another way is nohup command & |
You might want to consider the 'screen' command as it would suit your needs very well.
Read about it here -- http://www.linux.com/feature/113871?theme=print |
use -NF option
|
the at command works perfect for what I want to do... Thank you all...
but now I would like the script to print in the screen when everything is done... could be either the remote host or local one... How could that be done?? |
Might try using the ampersand to release your SSH prompt and redirecting the output to a file on the remoete machine,
Code:
$ XYZ.sh > Results.txt & |
All times are GMT -5. The time now is 01:24 PM. |