From owner-freebsd-questions@FreeBSD.ORG Sat Jan 5 07:58:40 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E7FDA8EA for ; Sat, 5 Jan 2013 07:58:40 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id B25EEE3E for ; Sat, 5 Jan 2013 07:58:40 +0000 (UTC) Received: from r56.edvax.de (port-92-195-31-80.dynamic.qsc.de [92.195.31.80]) by mx02.qsc.de (Postfix) with ESMTP id B4C68254AE; Sat, 5 Jan 2013 08:58:39 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r057wgcb001980; Sat, 5 Jan 2013 08:58:42 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 5 Jan 2013 08:58:42 +0100 From: Polytropon To: Jack Mc Lauren Subject: Re: system restart after some seconds Message-Id: <20130105085842.c5d70579.freebsd@edvax.de> In-Reply-To: <1357371837.19307.YahooMailNeo@web160101.mail.bf1.yahoo.com> References: <1357371837.19307.YahooMailNeo@web160101.mail.bf1.yahoo.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Global Users Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 07:58:41 -0000 On Fri, 4 Jan 2013 23:43:57 -0800 (PST), Jack Mc Lauren wrote: > How can I restart my freeBSD after specific seconds ? Unelegant and obvious: # sleep 10 ; shutdown -r now If you need this to happen automatically, use /etc/rc.local, and maybe put the whole command into background using (...)&. Beware - endless loop! You need to be fast enough to revert the change or go to SUM to do so. :-) Parameters to shutdown itself, as well as for the "at" command, only allow minutes as most precise elements; see "man shutdown" and "man at" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...