From owner-freebsd-questions Thu Dec 6 17:23:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by hub.freebsd.org (Postfix) with ESMTP id E712237B41B for ; Thu, 6 Dec 2001 17:23:21 -0800 (PST) Received: from [209.224.35.10] (helo=daggar) by hermes.pressenter.com with smtp (Exim 3.16 #1) id 16C9jJ-0001jt-00; Thu, 06 Dec 2001 19:23:10 -0600 From: "Stephen Hilton" To: "FreeBSD Questions" Cc: "William Evanson" Subject: RE: reboot script Date: Thu, 6 Dec 2001 19:23:43 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20011207011320.32816.qmail@web14402.mail.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal 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 William Evanson wrote on Thursday, December 06, 2001 7:13 PM > I am looking to create a script to reboot my system > weather or not someone is logged in at su or not. > Does anyone know if this is possible. To do the su > and login and password in a script. I know this is a > bit unorthodox and not very safe, but does anyone have > any ideas how to do a restart without root level access? When would you like this to happen, on an event, at any old random time :-), etc... I am thinking this could be done with cron if you want the reboot to happen at a specific time. If it is needed on event again a cron job could check for the event and reboot if your criteria has been met. More information needed. Regards, Stephen Hilton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message