Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-03-2012, 02:50 AM   #1
Registered: Aug 2009
Location: Ilkeston, England
Distribution: ubuntu, xp, embeded
Posts: 79

Rep: Reputation: 1
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?
Old 01-03-2012, 03:16 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 69
screen or tmux
Old 01-30-2012, 03:03 PM   #3
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
at the end of command before you execute add & .
Old 01-30-2012, 04:28 PM   #4
Senior Member
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,597
Blog Entries: 31

Rep: Reputation: 175Reputation: 175
Originally Posted by ratotopi View Post
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).
Old 01-31-2012, 11:46 AM   #5
LQ Newbie
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
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.
Old 01-31-2012, 11:36 PM   #6
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,165

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how do i log the start/completion (time&date) of my cron job script? davide123 Linux - Newbie 3 01-11-2010 06:25 PM
scripting - return value of remote commands? siloko Linux - Software 4 10-02-2009 06:53 AM
Ping Return Remote Host Information qwerty_tele Linux - Security 3 11-24-2008 11:05 AM
How can I start VirtualBox on a remote machine and log out from the terminal? crisostomo_enrico Solaris / OpenSolaris 2 08-09-2008 03:02 AM
Can you start a job without getting the job number spit back out? BrianK Linux - General 5 12-13-2007 08:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration