[Lvlug] Crontab & cron
User Fwc
fwc at frankcole.lvcm.com
Sun Mar 7 19:51:53 PST 2010
On Sun, 7 Mar 2010, User Fwc wrote:
> Playing with crontab and can't get the entry to execute.
>
> Cron running, top shows
> 734 root 1 8 0 3212K 1288K nanslp 1 0:00 0.00% cron
>
> crontab -l shows
> 0-59/5 * * * * /usr/home/fwc/temp/timestamps
>
> Crontabs file under
> /var/cron/tabs
> shows
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.2PvlqUcoLo installed on Sun Mar 7 18:53:53 2010)
> # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v
> 1.24.6.1 2008/11/25 02:59:29 kensmith Exp $)
> 0-59/5 * * * * /usr/home/fwc/temp/timestamps
>
> The 'timestamps' script is
> #!/bin/sh
> date >> cronout
> and it will execute from the command line.
>
> Permissions are
> -rwxr--r-- 1 fwc fwc 27 Mar 7 18:13 timestamps*
>
> I've even tried restarting the machine.
> She no work. Ideas?
Replying to myself here.
Looked at /var/log/cron with 'tail -f', crontab line shows as being run.
Mar 7 19:45:00 ibm /usr/sbin/cron[1175]: (fwc) CMD
(/usr/home/fwc/temp/timestamps)
Also included path to 'date' in timestamps, no help.
#!/bin/sh
/bin/date >> cronout
Out of ideas...
More information about the Lvlug
mailing list