LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH remote command withouth output (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-remote-command-withouth-output-677670/)

Ricio 10-19-2008 09:09 PM

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?

billymayday 10-19-2008 09:11 PM

I use "at" for that, as in

at -f script.file now

Another way is

nohup command &

skellam 10-19-2008 09:22 PM

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

WorldIsNotFair 10-19-2008 09:33 PM

use -NF option

Ricio 10-20-2008 10:47 AM

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??

john test 10-20-2008 11:44 AM

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 &
Good Luck with your project


All times are GMT -5. The time now is 01:24 PM.