Hey,
I have script called chmody. It is in /usr/sbin/chmody:
I've added to /etc/crontab
When cron(8) starts I get info in /root/log as below:
What does he mean? When I put these command in console by hand works like a charm. With cron(8) I get some weird stuff ?
Why?
I have script called chmody. It is in /usr/sbin/chmody:
Code:
echo "Update Host" >> /root/log
freebsd-update fetch install >> /root/log
echo "Update jail Oksymoron" >> /root/log
freebsd-update -b /zroot/Oksymoron fetch install >> /root/log
Code:
# $FreeBSD: release/10.0.0/etc/crontab 194170 2009-06-14 06:37:19Z brian $
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
#
#minute hour mday month wday who command
#
*/30 * * * * root /usr/sbin/chmody
Code:
cat /root/log
------------------------------------------
Update Host
freebsd-update fetch should not be run non-interactively.
Run freebsd-update cron instead.
------------------------------------------
Update jail Oksymoron
freebsd-update fetch should not be run non-interactively.
Run freebsd-update cron instead.
------------------------------------------
Why?