Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
| Search | Today's Posts | Mark Forums Read
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 20th, 2003, 02:49 AM
Authorized User
Join Date: Aug 2003
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cron job error

Dear all,

I have created a cronjob salesorder with the following entries:

lynx -dump >
/home/ganesh/php_output && mail -s "ePedas Sales Order Docket"
ganesh@epedas.com < /home/ganesh/php_output

and the cronjob to my /etc/crontab file as follows (I have copied the
cronjobs folder) :

30 9 * * * root /etc/cronjobs/salesorder

When I install the cronjob with the command below,

#crontab salesorder

it is giving me errors:

"/etc/cronjobs/salesorder":0: bad minute
errors in crontab file, can't install.

What could be the possible of this error. Please help.


  #2 (permalink)  
Old October 22nd, 2003, 04:04 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts

I do not quite see why you are modifying the system crontab and running this process as root. This isn't very secure. Why not create a special user with just enough priviledges to do what you want and edit their user crontab (you won't need to supply a "who" field, oif you do this).

Anyway, check for whitespace at the start of your crontab. There's something there, other than your "30" that is getting read as "minutes".



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job mani_he Linux 4 December 16th, 2010 07:02 AM
Windows cron job hsauer VB How-To 0 August 9th, 2006 11:40 AM
Cron Job Error - Need Help jkirkpatrick Linux 2 August 5th, 2005 05:51 AM
Cron job for a php-file nineball9 PHP How-To 2 October 21st, 2003 04:58 PM
Cron Job... Urgent ganesh15 Linux 2 September 19th, 2003 01:40 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.