Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2003 10:11:16 -0500
From:      Matthew Bettinger <mbettinger@championelevators.com>
To:        freebsd-questions@freebsd.org
Subject:   cron stopped working
Message-ID:  <200304091011.16805.mbettinger@championelevators.com>

next in thread | raw e-mail | index | archive | help
Hello,

I have the following crontab entry for root:
via crontab -e 

SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
HOME=/var/log
#========================================================
# Crontab entries to execute flexbackup to dump /depot /general /usr /var
# on specified days.  Level 0 (full) on Wed @ midnight and Incrementals
# every other day at midnight -M.Bettinger 9.17.02
#========================================================
55 23 * * 3 root /usr/local/bin/flexbackup -fs all -level 0
55 23 * * 4 root /usr/local/bin/flexbackup -fs all -level 1
55 23 * * 5 root /usr/local/bin/flexbackup -fs all -level 2
55 23 * * 6 root /usr/local/bin/flexbackup -fs all -level 3
56 23 * * 0 root /usr/local/bin/flexbackup -fs all -level 4
55 23 * * 1 root /usr/local/bin/flexbackup -fs all -level 5
55 23 * * 2 root /usr/local/bin/flexbackup -fs all -level 6

This is sopposed to run  a backup script at night however it appears to not be 
working, or is it?  In /var/log/cron shows :

Apr  8 13:08:00 tester /usr/sbin/cron[75516]: (root) CMD (root /usr/local/bin/
flexbackup -fs all -level 6) 

If i cut and paste the exact command in sh shell it works.

System info...

tester# uname -a
FreeBSD tester.championelevators.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Dec  
5 21:58:26 CST 2002     
root@tester.championelevators.com:/general/obj/usr/src/sys/GENERIC  i386
tester# uptime
10:15AM  up 121 days,  1:06, 1 user, load averages: 0.35, 0.09, 0.03

ps displays that cron is running.

root     115  0.0  0.4  1028  448  ??  Is    9Dec02   1:48.07 /usr/sbin/cron

regards, 

Matt Bettinger



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304091011.16805.mbettinger>