Pages: [1]   Go Down
Author Topic: Problem with cronjob  (Read 2819 times)
maxtremist
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: April 24, 2008, 15:52:39 PM »

Hi

i worked through the Crontab Tutorial but it doesnt work.

root@WL700gE:/usr/bin# ps | grep cron
  483 root        432 S   crond -c /etc/crontabs
root@WL700gE:/usr/bin# date
Thu Apr 24 16:23:47 CEST 2008

the test-scripts in the cron. dirs work (manually)
i double checked my system with the tutorial and everything seems fine.
how can i check whats wrong?

thx
Logged

macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,116



View Profile
« Reply #1 on: April 25, 2008, 07:59:36 AM »


Did you start the cron process at all?

Logged

maxtremist
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #2 on: April 25, 2008, 09:45:39 AM »

yes, it should startup with the S61crond script, or am i wrong with this.

ps shows

root@WL700gE:/usr/bin# ps | grep cron
  483 root        432 S   crond -c /etc/crontabs

is there another identification to look if it is started?
Logged

macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,116



View Profile
« Reply #3 on: April 25, 2008, 10:40:02 AM »


Nope.

This looks very much running :-)

Does:
Code:
logread

show you any cron entries?

Logged

maxtremist
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #4 on: April 27, 2008, 21:15:07 PM »

it looks that the cron process looks for the right dir, but is not executing the scripts in there.

Code:
root@WL700gE:~# logread |grep cron
Jan  1 01:00:42 (none) cron.notice crond[487]: crond 2.3.2 dillon, started, log level 8
Jan  1 01:01:01 (none) cron.notice crond[487]: USER root pid 576 cmd /usr/bin/run-parts /etc/cron.hourly
Jan  1 01:03:01 (none) cron.notice crond[487]: USER root pid 583 cmd /usr/bin/run-parts /etc/cron.nightly
Jan  1 01:05:01 (none) cron.notice crond[487]: USER root pid 585 cmd /usr/bin/run-parts /etc/cron.5mins
Jan  1 01:10:01 (none) cron.notice crond[487]: USER root pid 588 cmd /usr/bin/run-parts /etc/cron.5mins
.....

i have also tryed to chmod 777 the scripts and the dirs.
« Last Edit: April 28, 2008, 15:00:07 PM by maxtremist » Logged

Pages: [1]   Go Up
Print
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Theme Kani By Fussilet

Page created in 0.54 seconds with 22 queries.