LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cron job not running in slackware9.1 (https://www.linuxquestions.org/questions/linux-software-2/cron-job-not-running-in-slackware9-1-a-178096/)

marri 05-05-2004 06:04 AM

Cron job not running in slackware9.1
 
I have been trying to make a cron job to run a doxygen every night as follows:

-- The content of my "/var/spool/cron/crontabs/root" file --

00 03 * * * doxygen /www/htdocs/stb/docs/home 2>&1
> /multicast/dox.log

I have tried to get some response from this action, hence the dox.log file.
Nothing happens at this time (aswell as other times I have tried with).
If I do "ps aux" I can see that the crond deamon is running????

Hope you can help me here!
regards

b0uncer 05-05-2004 06:26 AM

I hope you haven't directly edited the file, but used crontab for that? like

crontab -l
(this should print your crontab file)
crontab -e
(this should throw you to edit your crontab file)

the line goes
MIN HOUR DAY MONTH DAYOFWEEK COMMAND
(so I see no error in your command line)
you might try and give the full path to your doxygen executable..I'm not sure whether crontab looks for PATH to find it, but try it.

whereis doxygen
(will show where the executable is)
then just edit the line as follows:
00 03 * * * /usr/bin/doxygen /www/htdocs/stb/docs/home 2>&1 /multicast/dox.log

assuming that doxygen is in /usr/bin/ of course...

see if adding the whole path helps.

marri 05-06-2004 06:54 AM

ahh, simple solution to this problem???????
I forgot to do this:

crontab /var/spool/cron/crontabs/name_of_file

The deamon has to be updated after changes of course. Stupid of me.


All times are GMT -5. The time now is 03:21 PM.