seems a bit overkill for just cron errors though. The error should be showing up in /var/log/crond. You could turn up the logging level to see more errors...
you could try stopping the daemon (/etc/rc.d/crond stop), then starting it manually (as root)
crond -d 1
the above will start cron with debugging level 1, and run it in the foreground, so you can see the error messages.
Once you get things figured out, just kill that daemon, and start it using the rc.d script again.
Also, make sure your script that you are trying to run actually works properly. It could be that it is what is failing..
]]>09-Mar-2005 09:18 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
When ever I get this message I get nothing from cron. Looking in /usr/sbin I have no such executable. And I can't get the package for it. paman -Ss sendmail pops back postfix is used in place of it.
]]>To have a cron run weekly, you could just create an executable script in /etc/cron.weekly, and it would run along with the other weekly crons (crontab -l as root will show you when that is..this is basically arch mirroring other cron functionality--how vixie cron does it?)....
anyway, to have it run as a user, just creat the crontab for your user...
crontab -e..
any errors by the cron will show up in /var/log/cron or something...and also are generally emailed to the root account.
I just assumed, erroneously apparently, that you were somehow using /etc/cron.weekly as part of your script..ie your script was using that as an argument..you do not need to reference it as part of a user cron, nor should you.
]]>I have dcron 2.9-2
did you have to add /etc/cron.weekly at the end of your job?
]]>maybe if you clarified what you are trying to achieve. From my end cron works fine as installed from my original installation by cd (quite a few months ago now).
]]>I have crond in my rc.conf DAEMONS list, so cron starts at boot.
and I have edited a user cron with crontab -e..
it works fine.
you are aware that your cron job listed will run every 2nd day of the week at 7:05am right?
I don't know whether the day of the week starts on monday or sunday offhand, but you could try changing it to a "tue" for tuesday if that is what you want.
crond
2.)
crontab -e
5 19 * * 2 /home/tyler/Desktop/linux_scan /etc/cron.weekly
(without /etc/cron.weekly i can't even get it to work after restarting the daemon)
3.) created a simlink to /usr/sbin/crond
4.)reboot
5.)nothin'
crontab -e
.
Put in the lines you need and save and exit the file. You're done!
]]>