View previous topic :: View next topic |
Author |
Message |
kiss-o-matic Guru
Joined: 19 Jul 2004 Posts: 423 Location: Tokyo
|
Posted: Thu May 10, 2012 12:24 am Post subject: vixie-cron not running jobs. |
|
|
Headscratcher. I recently went through the baselayout2 upgrade. Everything seems to work accept vixie-cron. According to /var/log/messages, my jobs are run. However, there is definitely no output from them. I have one simple perl script which should just dump a single line into a file, yet, it doesn't.
I've tried unemerging and re-emerging vixie-cron but to no avail. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9695 Location: almost Mile High in the USA
|
Posted: Thu May 10, 2012 12:29 am Post subject: |
|
|
Are you sure it's being run?
You can try using the command "/usr/bin/logger" in a bash script to test if it can run any script, but the script might be having permission problems to write a file. Logger should dump a message into the syslog which should show up in /var/log/messages if you didn't redirect it... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
kiss-o-matic Guru
Joined: 19 Jul 2004 Posts: 423 Location: Tokyo
|
Posted: Thu May 10, 2012 12:39 am Post subject: |
|
|
I'm pretty sure they're being run.
Here's a line in /var/log/messages
Code: |
May 10 09:30:01 txlnx07 cron[26599]: (paule) CMD (php /datlib/script/php/aucfin.php > /tmp/aucfin.out)
|
But, /tmp/aucfin.out does not exist. I made sure any job in cron has 755 permissions.
I added /usr/bin/logger in my test script. /var/log/messages again shows me only that it runs
Code: |
May 10 09:38:01 txlnx07 cron[29157]: (paule) CMD (/home/paule/test.pl)
|
But nothing else. If I run test.pl from the shell, it prints out a test line in the syslog. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9695 Location: almost Mile High in the USA
|
Posted: Thu May 10, 2012 2:26 pm Post subject: |
|
|
So it looks like it didn't actually get run...
hmm... Using crontab to edit the cron file? What is the contents of the crontab file?
Do you have a mail program? Can you check your dead.letter if you don't to see if there's any diagnostic messages there? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
kiss-o-matic Guru
Joined: 19 Jul 2004 Posts: 423 Location: Tokyo
|
Posted: Fri May 11, 2012 1:50 am Post subject: |
|
|
dead.letter got out of control size-wise and I removed it not long ago. I have noticed now that it has not be recreated. I've done this many times before on other systems when I needed emergency space.
Contents of the crontab is just a handful of jobs which worked up until this baselayout2 update I did. |
|
Back to top |
|
|
kiss-o-matic Guru
Joined: 19 Jul 2004 Posts: 423 Location: Tokyo
|
Posted: Thu May 17, 2012 3:30 am Post subject: |
|
|
Still no love with this.
Tried about all I can think of. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9695 Location: almost Mile High in the USA
|
Posted: Thu May 17, 2012 2:36 pm Post subject: |
|
|
Can you get it to dump diagnostic output again?
Try creating an empty dead.letter file or installing a mail handing system on your system. (I usually do anyway because mail has been an integrated part of Unix since antiquity, it's a very useful thing to pass messages from the system to the administrator. Though having it dump everything into dead.letter also works, just kind of tacky...) _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
olegon n00b
Joined: 09 Jul 2012 Posts: 4
|
Posted: Mon Jul 09, 2012 6:11 am Post subject: |
|
|
Excuse me for possible offtopic, I can't create new thread.
Nowadays, I need to run job at second Wednesday.
Code: | 0 2 8-14 * 3 root /scripts/gen_arh &>/dev/null 2>&1
|
this job don't run in dcron at all, but run in vixie-cron at 8 and 9 of July (I suppose vixie-cron ignore 3)
Quote: | [I] sys-process/vixie-cron
Installed versions: 4.1-r12(09:20:47 AM 07/07/2012)(pam -debug -selinux)
| Where can I find vixie-cron bugzilla? |
|
Back to top |
|
|
olegon n00b
Joined: 09 Jul 2012 Posts: 4
|
Posted: Mon Jul 09, 2012 7:06 am Post subject: |
|
|
Edit to run as
Code: | 0 2 8-14 * * root if [ `date +%u` -eq 3 ]; then /my_scripts/gen_arh &>/dev/null 2>&1 ; fi;
|
|
|
Back to top |
|
|
|