LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2007, 10:47 AM   #1
ToonM
Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Cronjob stops working after a while


Hello,

I wish to create crontab files for users on my system.
So far so good, created the file, /var/spool/cron/crontabs/<user> and in that file:

*/1 * * * * date >> /tmp/test

so that every minute the date is written in the /tmp/test.

It runs for about one hour (different everytime) and then it stopped.
When i edit the crontab file, so that the crontab.update is created, it runs again, but stops after a while.

Any idea?
If i enter it in the root's crontab file, it works perfect, but in the usersfile it doesn't

I can't see anything wrong with strace'ing the process.
Running slackware 10.2.0 with kernel 2.4.31, but every other box with different versions create the same problem

Thanks in advance
 
Old 01-21-2007, 12:22 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Any errors dumped by cron in the mail to the $LOGNAME running this crontab?
 
Old 01-22-2007, 11:04 AM   #3
ToonM
Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
None
Also nothing in the logs (even set loglevel to 8)
 
Old 01-22-2007, 06:55 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I wish to create crontab files for users on my system.
So far so good, created the file, /var/spool/cron/crontabs/<user>

What happens if you install the cronjob the right way by doing "crontab -u $USERNAME -e" or "crontab -e" as the target user?. Are there any security-related hourly cronjobs running? Do all other cronjobs run fine? Does the interval make a difference (say /2 or /10)? And if using a script instead of a commandline?, like
[code]
#!/bin/sh --
/bin/date >> /tmp/test
exit 0
[code]
and cronjob that? Anything logged if you run with even more verbosity?
 
Old 01-23-2007, 12:53 AM   #5
ToonM
Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn
I wish to create crontab files for users on my system.
So far so good, created the file, /var/spool/cron/crontabs/<user>

What happens if you install the cronjob the right way by doing "crontab -u $USERNAME -e" or "crontab -e" as the target user?. Are there any security-related hourly cronjobs running? Do all other cronjobs run fine? Does the interval make a difference (say /2 or /10)? And if using a script instead of a commandline?, like
[code]
#!/bin/sh --
/bin/date >> /tmp/test
exit 0
[code]
and cronjob that? Anything logged if you run with even more verbosity?
I've given up hope.
Customers needed the cronjobs.

installed other cron daemon and that daemon is working perfect now.
I'll look at this problem later.

Thanks.
 
  


Reply


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
Cronjob not working, stops at lynx prompt abefroman Linux - Server 3 11-01-2006 01:58 PM
Call of Duty 2 Cronjob Not working zend Linux - Software 3 11-15-2005 10:52 AM
cronjob not working but script works dtra Linux - Newbie 4 02-28-2005 05:05 PM
Slackware 9.0 stops working raypen Slackware 3 12-14-2003 04:04 PM
Internet Stops working smurf Linux - Networking 0 02-11-2002 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:23 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
Open Source Consulting | Domain Registration