Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-26-2006, 01:52 PM   #1
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Rep: Reputation: 31
Submitting a job to a server


Is it possible to submit a job to a remote server and then shutdown your machine but have the job on the server still running? How do you do that?

Old 06-26-2006, 02:15 PM   #2
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
I used "screen". It worked well for me.
Old 06-26-2006, 02:19 PM   #3
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
You could also try 'nohup'.
Old 06-26-2006, 02:19 PM   #4
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,053
Blog Entries: 14

Rep: Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226
Yes. Many ways to do this.

Some years back someone set this up on one of our servers in its root crontab (crontab -e as the root user lets you add entries):

00 02 * * 1-6 /usr/bin/ssh remotehost "at -f /root/scripts/ 03:15" >> /var/log/sync.log 2>&1
The above runs at 2 AM daily (except Sunday) on the first server from cron. The cron job opens an ssh to the remote (second server) and schedules an "at" job to run there at 3:15 AM. After 2 AM on the first server I could shut it down because the "at" job is in the remote hosts queue to be run and doesn't require interaction with the first host.


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
Submitting tutorials Bjerrk LQ Suggestions & Feedback 7 09-05-2005 01:35 PM
Submitting a quote jaydavis Linux - Enterprise 2 02-14-2005 09:22 PM
[Job Offer] - Server-setup Aziz General 3 10-03-2004 09:06 PM
Submitting a link LinuxLala LQ Suggestions & Feedback 8 02-12-2004 12:44 PM
submitting a bug report Goatdemon Linux - Software 4 05-24-2003 01:32 AM > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration