SliTaz SliTaz Forum

You are not logged in.

#1 2012-04-22 21:21:09

mops
Member
Registered: 2011-06-04
Posts: 45

problem with crontab / slitaz 4.0

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

#2 2012-04-23 14:51:39

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: problem with crontab / slitaz 4.0

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

#3 2012-04-23 20:08:03

mops
Member
Registered: 2011-06-04
Posts: 45

Re: problem with crontab / slitaz 4.0

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

#4 2012-04-24 01:53:53

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: problem with crontab / slitaz 4.0

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]