LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-09-2007, 02:57 PM   #1
Vort3x
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 16

Rep: Reputation: 0
Cron - "incorrect minute" what's wrong?


I'm not great with cron, I'm trying to add the following to my crontab but when saving it keeps saying invalid minute:

0,15,30,45 * * * * /usr/local/bin/indexer --config /usr/local/etc/sphinx_ipb.conf ipb_search_posts_delta ipb_search_topics --rotate >/dev/null 2>&1

0 4 * * * /usr/local/bin/indexer --config /usr/local/etc/sphinx_ipb.conf --all --rotate >/dev/null 2>&1

I'm trying to get the first one to run every 15 minutes, and the second every morning at 4AM ... know what's wrong with it?
 
Old 10-09-2007, 09:23 PM   #2
xnomad
Member
 
Registered: Jun 2005
Posts: 53

Rep: Reputation: 15
To run every 15 minutes try the following:

*/15 * * * * /usr/local/bin/indexer --config /usr/local/etc/sphinx_ipb.conf ipb_search_posts_delta ipb_search_topics --rotate >/dev/null 2>&1

Cheers,
 
Old 10-09-2007, 09:33 PM   #3
Vort3x
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 16

Original Poster
Rep: Reputation: 0
Nope, still getting invalid minute.
 
Old 10-09-2007, 10:25 PM   #4
digitalboy74
Member
 
Registered: Aug 2004
Location: Matrix
Distribution: slack currrent
Posts: 61

Rep: Reputation: 16
can you describe how you are editing the crontab and where you are seeing "invalid minute"?
 
Old 10-10-2007, 05:55 AM   #5
Vort3x
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 16

Original Poster
Rep: Reputation: 0
I login via shell, and enter "crontab -e" this brings up the nano editor for the cron file, I have the following contents:
Quote:
9 0 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
19 22 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
0 4 * * * /usr/local/bin/indexer --config /usr/local/etc/sphinx_ipb.conf --all --rotate >/dev/null 2>&1
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
I try to add at the very bottom:
*/15 * * * * /usr/local/bin/indexer --config /usr/local/etc/sphinx_ipb.conf ipb_search_posts_delta ipb_search_topics --rotate >/dev/null 2>&1

Ctrl X to exit, y to save, then I get this error:
Quote:
crontab: installing new crontab
"/tmp/crontab.XXXXRydCDF":11: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit? n
crontab: edits left in /tmp/crontab.XXXXRydCDF
 
  


Reply

Tags
cron, invalid


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
FC6, "incorrect arch", Transmeta Crusoe, i586/i686 wkuballa Fedora - Installation 5 01-27-2007 01:32 PM
kppp: "initializing modem" +1 minute! linmix Linux - Software 3 11-02-2005 05:02 PM
Incorrect IRQ/IO addr. with Zipslack's "tulip" ethernet driver jeffg84 Linux - Networking 0 04-08-2003 01:46 PM
PSSST! Last minute help "too many levels?" chingasman Linux - General 0 01-10-2003 08:56 PM
Monthly Archiving Script... help with "date" & "cron" Supp0rtLinux Linux - Software 3 01-03-2003 10:29 PM


All times are GMT -5. The time now is 12:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration