From owner-freebsd-questions Mon Jul 22 12:51:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E22C637B400 for ; Mon, 22 Jul 2002 12:51:46 -0700 (PDT) Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 802AE43E4A for ; Mon, 22 Jul 2002 12:51:46 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id D86672907E; Mon, 22 Jul 2002 15:51:45 -0400 (EDT) Date: Mon, 22 Jul 2002 15:51:45 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: Cc: FreeBSD LIST Subject: Re: Can I use cron to shutdown a machine In-Reply-To: <031b01c231bb$dea90760$7d05a8c0@fred> Message-ID: <20020722154815.O12579-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com 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 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