The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Question about cron jobs buyog Linux 1 05-22-2008 07:44 AM
cron jobs dannyd Linux 1 02-26-2008 01:35 AM
Cron Jobs dereckbc UNIX for Dummies Questions & Answers 6 01-19-2005 06:29 AM
cron jobs dozy UNIX for Dummies Questions & Answers 3 10-27-2004 05:41 AM
CRON Jobs eludlow UNIX for Dummies Questions & Answers 4 05-28-2004 05:24 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2003
Registered User
 

Join Date: Dec 2003
Location: Atlanta Ga.
Posts: 29
Question about Cron jobs?

I can see where the nohup command can come in very handy. My question is, do you have to do something like this (nohup) in order to run certain cron jobs? On the windows side, I have a couple of scripts that basically run continuously, so all I have to do is ctrl-alt-del to lock my workstation, and the jobs continue to run.
Forum Sponsor
  #2 (permalink)  
Old 12-14-2003
Registered User
 

Join Date: Nov 2003
Posts: 10
Putting the ampersand sign ( & ) at the end of the command sets it in background mode.
  #3 (permalink)  
Old 12-15-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,318
When you log off (or have your session killed in some other way) all processes, either foreground or background, that had your terminal as a controlling tty get a hangup signal. nohup makes them ignore that signal.

A cron job does not have a controlling terminal. So there is no session whose death might send that hup. The same is true of "at" jobs.

So there really is no need to nohup a cron job.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0