LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] cron: error: bad hour

[ILUG] cron: error: bad hour

Brian Foster blf at utvinternet.ie
Tue Aug 14 12:05:45 IST 2007


  | Date: Tue, 14 Aug 2007 09:51:04 +0100
  | From: "Chris Boyd " <chris.boyd at usit.ie>
  | 
  | Debian Etch 4.0. I was trying to get a script to run from crontab.
  | I've edited it several times and now cron doesn't seem to be running.
  | I'm getting the following from syslog:
  |[ ... ]
  | Aug 13 17:22:53 usit-mail cron[15090]: Error: bad hour; while reading /etc/crontab
  |[ ... ]
  | This is my crontab...I can't see what is wrong with the syntax.

 weird character someplace?
 I don't see any looking at the raw e-mail,
 but MUAs and cut-and-paste have a nasty habit
 of messing things up, so that doesn't mean too much.

 the one slightly odd thing I noticed is the line
 after the setting of PATH is not empty, but seems
 to consist of one(?) space.  whilst I _think_
 that's Ok (for GNU cron), you might want to ensure
 the apparently-empty lines to be really empty.

 also, what is are differences between the a
 working version crontab (ideally the last one
 that worked) and the one posted?  presumably,
 the problem is somewhere in those differences?
 (perhaps you should pull a working one from a
 recent backup — to compare —  if you don't have
 any other saved copy.)

cheers!
	-blf-

p.s., hint to programmers, designers, QA folk,
     and managers: this is a case where a better
     error message — in this case, more feedback,
     such as both the line number and unexpected
     character — would be a great help.
     error messages are important!

-- 
▶ ▶  I AM CURRENTLY LOOKING FOR A JOB!  ◀ ◀ | Brian Foster
Experienced (>25 yrs) software engineer:    |        Montpellier, FRANCE
 • Unix, Linux, embedded, design-for-test;  | Stop E$$o (ExxonMobile)!
 • Software/hardware co-design, debugging;  |     http:/www.stopesso.com
 • Kernels, drivers, filesystems, &tc;    Résumé (CV) & contact details:
 • IDL, automated testing, process, &tc.   http://www.blf.utvinternet.ie



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell