Re: crontab shutdown as (regular user or root su-) not working

2012-11-14 Thread Antonio Olivares
-Original Message- From: roig...@gmail.com Sent: Tue, 13 Nov 2012 11:32:03 +0200 To: test@lists.fedoraproject.org Subject: Re: crontab shutdown as (regular user or root su-) not working Hello Antonio, Here is a thread with a related problem and ways to solve it: http

Re: crontab shutdown as (regular user or root su-) not working

2012-11-13 Thread Frank Murphy
On Tue, 13 Nov 2012 11:57:17 +0100 Matej Cepl wrote: > On 2012-11-13, 09:35 GMT, Frank Murphy wrote: > > This is all I use in my crontab: > > 00 01 * * * poweroff > > Relying on $PATH being what you expect it to be in crontab is > highly dangerous (see crontab(5) on details) ... I generally don’

Re: crontab shutdown as (regular user or root su-) not working

2012-11-13 Thread Matej Cepl
On 2012-11-13, 09:35 GMT, Frank Murphy wrote: > This is all I use in my crontab: > 00 01 * * * poweroff Relying on $PATH being what you expect it to be in crontab is highly dangerous (see crontab(5) on details) ... I generally don’t trust $PATH I don’t see in crontab itself, or in this case, jus

Re: crontab shutdown as (regular user or root su-) not working

2012-11-13 Thread Frank Murphy
On Mon, 12 Nov 2012 09:42:58 -0800 Antonio Olivares wrote: > Dear fellow testers & devs., > > I have a special crontab which shuts down the computers at a > specific time, ie., > > 30 15 * * 1-5 /usr/sbin/poweroff > /dev/null 2>&1 > This is all I use in my crontab: 00 01 * * * poweroff --

Re: crontab shutdown as (regular user or root su-) not working

2012-11-13 Thread Vadim Rutkovsky
Hello Antonio, Here is a thread with a related problem and ways to solve it: http://www.linuxforums.org/forum/red-hat-fedora-linux/159976-cron-shutdown-fails.html Try using "/sbin/poweroff" instead of "/usr/sbin/poweroff" - and check root mail (stored in /var/spool/mail/root) for debug informatio