LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   start a remote job and then log off and return later (https://www.linuxquestions.org/questions/linux-software-2/start-a-remote-job-and-then-log-off-and-return-later-921721/)

JonathanWilson 01-03-2012 02:50 AM

start a remote job and then log off and return later
 
I know Ive read how some where but can't remember the terminology.

If I SSH to a remote system how can I start a command and have it running while I disconect and then re-connect later to check on it?

raskin 01-03-2012 03:16 AM

screen or tmux

ratotopi 01-30-2012 03:03 PM

at the end of command before you execute add & .

Skaperen 01-30-2012 04:28 PM

Quote:

Originally Posted by ratotopi (Post 4588644)
at the end of command before you execute add & .

The HUP signal from disconnecting could kill the background job. Screen is what I use. I've never tried tmux (and apparently don't even have it to see what it does). I probably have a few dozen disconnected screen sessions spread over various servers right now.

If you need to do this with X Windows applications, there's Xvnc or Xtightvnc (an X Server in virtual RAM, accessible via a VNC viewer).

jasmine555 01-31-2012 11:46 AM

The job owner must have EXECUTE privileges on the credential or be the credential owner. For remote external jobs, the credential_name attribute is required. If this attribute is not set for local external jobs, default credentials are used.

chrism01 01-31-2012 11:36 PM

Use
Code:

nohup <your job cmd & params here> &
screen is another alternative IF you need to get back into that exact session.


All times are GMT -5. The time now is 10:14 AM.