LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-03-2012, 02:50 AM   #1
JonathanWilson
Member
 
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
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
screen or tmux
 
Old 01-30-2012, 03:03 PM   #3
ratotopi
Member
 
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
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
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
jasmine555
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
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

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