From owner-freebsd-questions Tue Mar 5 6:41:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from oxe.cs.umu.se (oxe.cs.umu.se [130.239.40.14]) by hub.freebsd.org (Postfix) with ESMTP id 2826D37B402 for ; Tue, 5 Mar 2002 06:41:19 -0800 (PST) Received: from bark (rfc1413 says tdv94ped@bark.cs.umu.se [130.239.40.185]) by oxe.cs.umu.se (8.8.8/8.8.8) with ESMTP id PAA23199; Tue, 5 Mar 2002 15:41:12 +0100 (MET) Date: Tue, 5 Mar 2002 15:41:12 +0100 (MET) From: Paul Everlund To: stan Cc: Free BSD Questions list Subject: Re: Rebooting mahien from cron In-Reply-To: <20020305143503.GA14176@teddy.fas.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Tue, 5 Mar 2002, stan wrote: > 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? I don't think you need the ' around the command, but this is probably not your problem. More important, are you using the crontab of root, and hence executing the shutdown as this user? /Paul E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message