You are not logged in.
Pages: 1
Hello,
I use slitaz 4.0 and have a problem with crontab
I have the file crontabs.1695 in the directory
/var/spool/cron
The contents of the file is:
#crontab fuer tux25
#Shell Variable fuer cron
SHELL=/bin/sh
#Path Variable fuer cron
PATH=/bin:/sbin:/user/bin:/user/sbin
#Minute Stunde Tag(Monat) Monat Tag(Woche) Kommando
#(0-59) (0-23) (1-31) (1-12) (1-7 1=Mo)
0 23 22 4 0 /home/tux25/play.sh
Then I start the daemon crond on a terminal
put the shell-script run not at the insert date and time
What could be wrong ?
so long joerg
Offline
You do know how to use cron right? In case you don't, cron runs the cronjob in crontab every X amount of time. That X amount of time is what you specified. Your script currently runs every 22nd of the 4th month at 23rd hour and 0 minutes. Also you made the day 0 instead of *
Offline
Hello @Trixar_za,
thanks for the answer but the parameterization of the date time, etc., was known to me.
Today I search through the log file . "Permission denied" the user tux25 had no authority to start crond .
When I reinstalling the slitaz 4 , I noticed that the two directories are not created by default
/ cron / crontabs
so long joerg
Offline
The user is given a false [OK] by start script that crond has started.
# [c]/etc/init.d/crond start[/c]
Starting cron deamon: Crond... [ OK ]
# [c]pgrep cron[/c] returns nothing.
The reason why cron won't start is in /var/log/dmesg:
Apr 24 01:08:33 (none) cron.err crond[11501]: chdir(/var/spool/cron/crontabs):
No such file or directory
Crond won't start unless path /var/spool/cron/crontabs exists.
# [c]mkdir -p /var/spool/cron/crontabs[/c]
# [c]/etc/init.d/crond start[/c]
Starting cron deamon: Crond... [ OK ]
/var/log/dmesg:
Apr 24 01:20:04 (none) cron.info crond[11528]: crond: crond (busybox 1.18.4) st
arted, log level 8
root@slitaz:/home/tux# [c]pgrep cron[/c]
11567
Now cron is running.
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]