From owner-freebsd-questions Sun Sep 12 20:25:24 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.pe.net (smtp.pe.net [205.139.56.34]) by hub.freebsd.org (Postfix) with ESMTP id 407BB1553A for ; Sun, 12 Sep 1999 20:25:13 -0700 (PDT) (envelope-from dmahoney@smtp.pe.net) Received: (from dmahoney@localhost) by smtp.pe.net (8.9.1/8.9.1) id UAA10995 for freebsd-questions@freebsd.org; Sun, 12 Sep 1999 20:25:12 -0700 (PDT) From: Dan Mahoney Message-Id: <199909130325.UAA10995@smtp.pe.net> Subject: Running shutdown from a cron job To: freebsd-questions@freebsd.org Date: Sun, 12 Sep 1999 20:25:11 -0700 (PDT) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've got a machine tht has been a little flaky lately - it tends to lock up unexpectedly anywhere from once to several times a day. Im going to upgrade the OS in a couple of weeks (it's currently running 3.1), but until I can get to the machine (it's 500 miles away from me) I'm working on a script that will detect when the machine has slipped off to never-never land and do a clean reboot. Unfortunately, when I tried adding a line like 0 0 * * * /sbin/shutdown -r now to root's crontab, the shutdown never happens. I assume I'm overlooking something pretty basic here. Is there some valid reason why I can't run shutdown or reboot from a cron job? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message