Date: Mon, 22 Jul 2002 15:51:45 -0400 (EDT) From: Peter Leftwich <Hostmaster@Video2Video.Com> To: <fred@timogen.com> Cc: FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org> Subject: Re: Can I use cron to shutdown a machine Message-ID: <20020722154815.O12579-100000@earl-grey.cloud9.net> In-Reply-To: <031b01c231bb$dea90760$7d05a8c0@fred>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Jul 2002 fred@timogen.com wrote: > hi , Can I use cron to shutdown a mahine? I had add the task to shutdown a machin in crontab, but It is not work. Can u tell me why? > Regards, > Fred Zhang Sure you can! In your crontab file, just use the command "shutdown -p now" or you can specify a [time] instead of the "now." From the manpage for "shutdown:" time Time is the time at which shutdown will bring the system down and may be the word now (indicating an immediate shutdown) or specify a future time in one of two formats: +number, or yymmddhhmm, -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 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?20020722154815.O12579-100000>