Date: Sat, 14 Jun 2003 13:42:52 -0400 (EDT) From: Jim Weeks <jim@jwweeks.com> To: "PsYxAkIaS (FreeBSD)" <freebsd@psyxakias.com> Cc: freebsd-isp@freebsd.org Subject: Re: cannot reboot from a script ran by root's crontab Message-ID: <20030614133557.X4189-100000@veager.jwweeks.com> In-Reply-To: <000a01c33105$8e4e4ec0$152ea8c0@computer>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Jun 2003, PsYxAkIaS (FreeBSD) wrote: > $ cat /usr/sbin/checkre > #!/bin/bash > mkdir /tmp/reboot > reboot now I would assume that crontab can't find "reboot", ie "sbin" isn't in your path. (/sbin/reboot now) > $ crontab -l > 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/sbin/checkre >/dev/null 2>&1 This could be more easily written in this manner; 0-59/5 * * * * /usr/sbin/checkre >/dev/null 2>&1 BTW, ">/dev/null" is the reason you aren't seeing the "not found error". Hope this helps, -- Jim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030614133557.X4189-100000>