UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old July 29th, 2004, 03:37 PM
smiles78 smiles78 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 46 smiles78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 33 sec
Reputation Power: 5
Question Cron Job Question

Are there any good tutorials?

Right now I have a process which includes many small processes. Everything has to be run in a certain order. Can I have something like this done in a cron job:

Process A - scheduled daily
Process B - not scheduled, only called by Process A under certain conditions
Process C - not scheduled, only called by Process B under certain conditions

Is this possible with a cron job to have a job that isn't actually scheduled. I wanted this for a status tracking purposes. Does cronjob keep track of the status of it's job with a code that one can see?

Reply With Quote
  #2  
Old July 29th, 2004, 05:07 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
the best tutorial is the manpage

man cron
man crontab
man 5 crontab

once a minute, the cron daemon compares the current time to the entries in the crontabs. If it finds a match, it excecutes the command, optionally as the specified user. The time is the only criteria. Further, when executing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if such exists).
Check your syslogd.conf to see which logfile which level of cron messages land in (probably at least in /var/log/all). You can also divert the error and output as you would normally on the command line.

-Steven

Reply With Quote
  #3  
Old July 30th, 2004, 04:02 AM
c444l c444l is offline
contains a pressurised widget
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NC USA
Posts: 401 c444l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 41 sec
Reputation Power: 5
Send a message via AIM to c444l Send a message via Yahoo to c444l
Rather than trying to do some wicked voodoo trickery with cron,
why not write up your own shell script to handle all of this.
and then schedule your script with cron?

Reply With Quote
  #4  
Old July 30th, 2004, 10:28 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
right... that was where I was going with my post... but it was 4am in central europe, and it appears I got sidetracked by the sandman before making a point.. beg your pardon.

-Steven

Reply With Quote
  #5  
Old November 29th, 2004, 06:11 PM
s_ktamhane s_ktamhane is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 s_ktamhane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cron job help

Thanks a lot for the valuable help!!!!

Reply With Quote
  #6  
Old December 5th, 2004, 04:58 AM
c444l c444l is offline
contains a pressurised widget
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NC USA
Posts: 401 c444l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 41 sec
Reputation Power: 5
Send a message via AIM to c444l Send a message via Yahoo to c444l

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Cron Job Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway