From owner-freebsd-questions Mon Jul 22 19:13:53 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 54F3937B400 for ; Mon, 22 Jul 2002 19:13:51 -0700 (PDT) Received: from repulse.xo.com (repulse.xo.com [207.155.248.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0139D43E5E for ; Mon, 22 Jul 2002 19:13:51 -0700 (PDT) (envelope-from fred@timogen.com) Received: from fred ([61.170.156.201]) by repulse.xo.com id WAA21702; Mon, 22 Jul 2002 22:13:40 -0400 (EDT) [ConcentricHost SMTP Relay 1.14] From: fred@timogen.com Message-ID: <05dc01c2326c$6a6c1480$7d05a8c0@fred> To: "Jimmy Olgeni" Cc: References: <20020722171843.W40235-100000@dev1.localdomain.net> Subject: Re: Can I use cron to shutdown a machine Date: Tue, 23 Jul 2002 10:14:23 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Hi Jimmy, Thanks very much. I do a test in my linux machine, the absolute path of the shutdown commands(/sbin/shutdown) is used in cron, so it works. Regards, Fred Zhang ----- Original Message ----- From: "Jimmy Olgeni" To: Sent: Monday, July 22, 2002 8:20 AM Subject: Re: Can I use cron to shutdown a machine > > On Mon, 22 Jul 2002 fred@timogen.com wrote: > > > 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? > > Did you use the full path for the command? Maybe it doesn't find > shutdown in the default cron path. You may try with "/sbin/shutdown". > Are you using /etc/crontab or the root user crontab? /etc/crontab also > wants a "who" column :) > > -- > jimmy > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message