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
cron job starts new cron proccess ron76 SUN Solaris 3 05-11-2008 10:07 PM
Cron and Pseudo-Cron dingusmcghee UNIX for Dummies Questions & Answers 1 01-31-2008 09:58 AM
CRON usage for CRON job skyineyes UNIX for Dummies Questions & Answers 1 01-17-2008 07:17 AM
AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log Keith Johnson AIX 0 01-09-2008 05:32 PM
Cron : you are not authorized to use cron. Sorry. tt155 UNIX for Advanced & Expert Users 1 07-06-2005 07:37 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-02-2007
Registered User
 

Join Date: Mar 2007
Posts: 6
cron job every 2 min

hi guys!

I have problem with cron
2,4,6,8,10,12,14,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60 * * * * /usr/local/george/update.py

I try this to schedule the script to run every second min forever but it doesn't work

any idea?

thanks in advance
george
Reply With Quote
Forum Sponsor
  #2  
Old 04-02-2007
Registered User
 

Join Date: Mar 2007
Posts: 6
this is the output:

$ sudo crontab -u george cronjob
11:54:40 installing file /usr/local/george/cronjob for user george
/usr/local/george/cronjob:1: Error while reading minutes field: skipping line.
11:54:40 george's fcrontab contains no entries : removed.
Modifications will be taken into account right now.

thanks
Reply With Quote
  #3  
Old 04-02-2007
Registered User
 

Join Date: Feb 2007
Location: Bangalore
Posts: 105
Quote:
Originally Posted by georgeplus
hi guys!

I have problem with cron
2,4,6,8,10,12,14,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60 * * * * /usr/local/george/update.py

I try this to schedule the script to run every second min forever but it doesn't work

any idea?

thanks in advance
george
i think the minute here starts from 0-59 and logically 60 is invalid..

try this..

1-59 * * * * /usr/local/george/update..py
Reply With Quote
  #4  
Old 04-02-2007
Registered User
 

Join Date: Feb 2007
Posts: 44
Hi,
Instead of mentioning a full list of values, mention the cron like this
* * * * * /usr/local/george/update..py
and inside the .py script check for the minute and then run it.
(You may need to run it only when it is either even or odd minutes.)

Thanks
Raghuram
Reply With Quote
  #5  
Old 04-02-2007
Registered User
 

Join Date: Mar 2007
Posts: 6
thanks!

I just use*/2 and works, it seems to...

when I
ps aux | grep crond

I don't see any deamon

I try sudo crond but "command not found" !!

I use gentoo
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:01 PM.


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

Content Relevant URLs by vBSEO 3.2.0