LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-16-2009, 06:43 PM   #1
bjh
Member
 
Registered: Oct 2007
Posts: 48

Rep: Reputation: 15
Crontab problem


I am also having cron troubles.

crond appears to be running, as per ps above, but my test crontab job doesn't act as i expect.

I have edited my user's crontab to contain one job as follows:

I have tested a command at the command line

date>>/home/bjh/test.txt

my crontab job line says:

1-59 * * * * date>>/home/bjh/test.txt

yet test.txt never accumulaes date entries as I would expect.

Is there something wrong with my crontab ?

Thanks,

Brian H.
Uxbridge Ont

Last edited by unSpawn; 02-16-2009 at 07:53 PM. Reason: //mod.note: pruned from threadid=522713, please don't post in threads over 3 to 4 months old.
 
Old 02-16-2009, 08:17 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
Here is a great page that discusses many problems that you might have. With only the limited info you supplied in your post, my first guess is to look at the file permissions on your test script; as Andy says, many crond implementations will not even try to run a script with permissions that it considers to be incorrect.

My second guess would be that you might need to let crond know about your change to the cron table (with -HUP).

Let us know if you need further help after trying the suggestions in the referenced webpage.
 
Old 02-17-2009, 03:30 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
1-59 * * * * date>>/home/bjh/test.txt
try to give the whole path to date =>
Code:
1-59 * * * * /bin/date >> /home/bjh/test.txt
 
  


Reply



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
crontab problem rammu_sivraj Red Hat 2 01-21-2007 11:07 PM
Problem using crontab simenzo Linux - Newbie 4 06-07-2006 03:21 PM
crontab problem sunnyanthony Linux - Software 1 01-07-2006 04:48 AM
Crontab Problem smus Linux - Newbie 4 12-10-2005 08:52 AM
crontab problem provo1234 Linux - General 3 01-21-2005 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:33 PM.

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
Open Source Consulting | Domain Registration