1

I want to run a job on remote server with no login. I found that I can run my job using ssh as:

ssh remotenode -t /path/to/myjob &> /path/to/log

However, the job would be killed by Signal 15 after a while. Does SSH force some timeout?

NOTE: My jobs takes a few hours to be completed.

1 Answer 1

3

If I may suggest using screen

ssh remotenode -t "screen -S ServerFault top" 

This will start screened top process with session name 'ServerFault' . Later on you can simply re-attach this on remotenode using

screen -r ServerFault

2
  • Thanks. Then should I run the job as ssh remotenode -t "screen -S ServerFault /path/to/myjob &> /path/to/log " ?
    – lashgar
    Oct 8, 2012 at 4:52
  • no need for &; just ctrl+a+d to detach screen and process will be left running on remotenode until you ssh to remotenode and run 'screen -r ServerFault' to check what is happening with your process Oct 8, 2012 at 10:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .