LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 31
Submitting a job to a server


Hi,

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?

Thanks
 
Old 06-26-2006, 02:15 PM   #2
w3bd3vil
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
Gethyn
Member
 
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
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
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):

Code:
00 02 * * 1-6 /usr/bin/ssh remotehost "at -f /root/scripts/dmxstart.sh 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.
 
  


Reply


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


All times are GMT -5. The time now is 02:16 AM.

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