From owner-freebsd-questions Tue Mar 5 6:34: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sumter.awod.com (sumter.awod.com [208.140.99.1]) by hub.freebsd.org (Postfix) with ESMTP id E34A137B400 for ; Tue, 5 Mar 2002 06:33:54 -0800 (PST) Received: from teddy.fas.com (pcp01010372pcs.mplsnt01.sc.comcast.net [68.58.176.67]) by sumter.awod.com (8.8.7/8.12.2) with ESMTP id JAA29109 for ; Tue, 5 Mar 2002 09:33:53 -0500 (EST) (envelope-from stanb@awod.com) X-Authentication-Warning: sumter.awod.com: User stanb [pcp01010372pcs.mplsnt01.sc.comcast.net] popped 267 seconds ago Received: from stan by teddy.fas.com with local (Exim 3.34 #1 (Debian)) id 16iG1v-0003gy-00 for ; Tue, 05 Mar 2002 09:35:03 -0500 Date: Tue, 5 Mar 2002 09:35:03 -0500 From: stan To: Free BSD Questions list Subject: Rebooting mahien from cron Message-ID: <20020305143503.GA14176@teddy.fas.com> Mail-Followup-To: Free BSD Questions list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.17 X-Uptime: 09:32:15 up 2 days, 32 min, 1 user, load average: 0.10, 0.12, 0.09 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have a FreeBSD machien that I need to reboot at a scheduled time. (Yes I know this is a bad idae, trust me it's a short tem hack). I tried puting the following line in roots crontab using crontab -e 59 23 * * 2 '/sbin/shutdown -r now' But the only result was that I got mailed an error message saying cron could not find /sbin/shutdown. What am I doing wrong here? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message