LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-18-2002, 07:32 AM   #1
maxbld
LQ Newbie
 
Registered: Nov 2002
Posts: 6

Rep: Reputation: 0
Can't *really* understand cron behavior


Here is my trouble:

cron is launched with /usr/sbin/crond -l8 >>/var/log/cron 2>&1,
as Dillon says in his doc files.
I've a slackware 8.0 and i'm trying to test dillon's cron with:

crontab -e

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

:wq

I'm sure crond is running and accepting updates. In fact when I write ':wq' in crontab's vi the following happens:

1) /var/spool/cron/crontabs/cron.update is touched and contains 'root'
2) an empty /etc/crontab is touched
3) after a minute the two files are deleted

these things make me think cron is updating its jobs.
*But*
After all this:

1) /var/log/cron is empty (totally)
2) /tmp/test simply doesn't exists
3) this situation keeps itself inaltered in time

I really can't understand what's going on. Any hint would be *greatly* appreciated.

Thanks a lot.

Max.
 
Old 11-18-2002, 08:02 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Is there an env variable $EDITOR? if so what its value? Another thing, what distribution is it? I remember there were questions about slack's interpretation of crontab and vi, if vi symlinked to elvis everuything works out, if it is an editor by itself strange things happen, I was able to fix them by explicitely exporting EDITOR variable set to vi
export EDITOR=/usr/bin/vi
 
Old 11-18-2002, 08:28 AM   #3
maxbld
LQ Newbie
 
Registered: Nov 2002
Posts: 6

Original Poster
Rep: Reputation: 0
I've tried as you said but it behaves exactly as before... SIGH.
 
Old 11-21-2002, 09:26 AM   #4
maxbld
LQ Newbie
 
Registered: Nov 2002
Posts: 6

Original Poster
Rep: Reputation: 0
neo,

I've checked your suggestion and found that everything is exactly as you say. Then I've changed the commands i put in crontab -e and amazingly it started to work.
I can only guess that for some reason unknown to me, the commands i formerly put in crontab -e did fail silently.

But as far as today crond keeps working, still I think its behavior is *strange*, considering that i had launched the daemon with debug level 0 but nevertheless it didn't log anything. Isn't it a lack of application performance?

Thankyou for your attention.
Max.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
cron.allow and cron.deny in slackware? tl64 Slackware 5 10-13-2005 09:44 PM
No More Cron Mail, Cron Error? Xhost Linux - General 3 07-26-2004 04:28 PM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM


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

Main Menu
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