Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Peter Hollandare on January 02, 2002, 08:50:09 PM
-
Are the crontab entries broken in e-smith 4.12 ??????
I have successfully made templates, expanded them, and new settings is made
in /etc/crontab
But they DONT WORK :( - So is it broken ??
what im using
0,15,25,35,45,55 * * * *
-
No trouble that I know of (though I'd probably put */10 in the first field). Have you restarted crond?
-
Thanks Dan for answering so quick. I have now changed it to look like this
*/10 * * * * / and made the following (dunno if this is the right way todo) crontab -u root crontab if not, please let me know the right way.
When i do that, it works oki - before i tested to see if crontab was really doing anything by crontab -l, and it came up somthing, like there where no crontabs running atm. I also tried as a "normal user", to add a crontab, but with no success. Complains that the "normal" user has no priviliges or something.
Running crontab jobs as root, is this safe?
Did i mention i love e-smith so much, i havent change or upgraded - god this must be the most flawless software i have been running :)
-
getting a msg every hour now :( saying command not found, getting slight annoying.
Anyone knows why??
-
Peter Hollandare wrote:
>
> getting a msg every hour now :( saying command not found,
Is the file to be executed in your path? I had a problem with cron.d where I had to add the path statement to the crontab (in standard format, e.g. PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin)
Des Dougan
-
Des, yes the dir is in PATH statement.
To be more clear this is the error msg.
1. Subject : Cron root run-parts /etc/cron.hourly
2. the msg : /bin/bash: root: command not found
Only thing i added is what i wrote in a earlier msg. I made a new template, expanded the template with success (the thing added in crontab actually works and runs every 10min).
Even rebooted the computer, but the annoying msg comes there every hour.
-
Template for crontab in /etc/ looks like this, if anyone knows.
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates directory. For more
# information, see http://www.e-smith.org.
#
# copyright (C) 1999, 2000 e-smith, inc.
#------------------------------------------------------------
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/10 * * * * /home/yabba/pisg-0.33/pisg.pl --silent
#------------------------------------------------------------
# TEMPLATE END
#------------------------------------------------------------
-
I think (haven't gone back to check the man pages) that you need the username in your statement, as in the ones above (i.e. they run as root user).
Des Dougan