Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2002 15:41:12 +0100 (MET)
From:      Paul Everlund <tdv94ped@cs.umu.se>
To:        stan <stanb@awod.com>
Cc:        Free BSD Questions list <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Rebooting mahien from cron
Message-ID:  <Pine.GSO.4.33.0203051538070.16542-100000@bark>
In-Reply-To: <20020305143503.GA14176@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.33.0203051538070.16542-100000>