Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2002 10:14:23 -0700
From:      fred@timogen.com
To:        "Jimmy Olgeni" <olgeni@uli.it>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: Can I use cron to shutdown a machine
Message-ID:  <05dc01c2326c$6a6c1480$7d05a8c0@fred>
References:  <20020722171843.W40235-100000@dev1.localdomain.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <olgeni@uli.it>
To: <fred@timogen.com>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05dc01c2326c$6a6c1480$7d05a8c0>