From owner-freebsd-isp@FreeBSD.ORG Sat Jun 14 10:43:16 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82F8D37B401 for ; Sat, 14 Jun 2003 10:43:16 -0700 (PDT) Received: from aurora.siteplus.com (aurora.siteplus.com [66.129.2.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95CD643FA3 for ; Sat, 14 Jun 2003 10:43:15 -0700 (PDT) (envelope-from jim@jwweeks.com) Received: from veager.jwweeks.com (pcp03144169pcs.midval01.tn.comcast.net [68.59.246.106]) by aurora.siteplus.com (8.12.9/8.12.6) with ESMTP id h5EHh4Oe020554; Sat, 14 Jun 2003 13:43:15 -0400 (EDT) (envelope-from jim@jwweeks.com) Date: Sat, 14 Jun 2003 13:42:52 -0400 (EDT) From: Jim Weeks To: "PsYxAkIaS (FreeBSD)" In-Reply-To: <000a01c33105$8e4e4ec0$152ea8c0@computer> Message-ID: <20030614133557.X4189-100000@veager.jwweeks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-isp@freebsd.org Subject: Re: cannot reboot from a script ran by root's crontab X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 17:43:16 -0000 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