Re: need help on using crontab

2014-02-20 Thread Andrei POPESCU
On Jo, 20 feb 14, 07:56:38, Tom Furie wrote: On Wed, Feb 19, 2014 at 03:22:08AM -0500, Long Wind wrote: I find that shutdown can take a time argument so why do I bother with cron Thank Raffaele Morelli and Tom anyway! Cron would be useful if you want to regularly shutdown or reboot

Re: need help on using crontab

2014-02-19 Thread Dom
On 19/02/14 07:13, Tom Furie wrote: On Wed, Feb 19, 2014 at 12:56:50AM -0500, Long Wind wrote: I want to shutdown at 5:03 I check with crontab -l it seems OK Depending on how you created the file the format may or may not be okay. Did you create the file in /etc/cron.d, or as a user with

Re: need help on using crontab

2014-02-19 Thread Long Wind
On 2/19/14, Raffaele Morelli raffaele.more...@gmail.com wrote: ?? First of all, is cron running? Have a `grep for CRON syslog` I find that shutdown can take a time argument so why do I bother with cron Thank Raffaele Morelli and Tom anyway! -- To UNSUBSCRIBE, email to

Re: need help on using crontab

2014-02-19 Thread Tom Furie
On Wed, Feb 19, 2014 at 08:20:50AM +, Dom wrote: From the original post, Long Wind seems to have used the original method of creating crontabs: crontab name of file to use as new crontab The usual sequence (on the old Unix systems I used to admin) was: crontab -l mycronfile vi

Re: need help on using crontab

2014-02-19 Thread Tom Furie
On Wed, Feb 19, 2014 at 03:22:08AM -0500, Long Wind wrote: I find that shutdown can take a time argument so why do I bother with cron Thank Raffaele Morelli and Tom anyway! Cron would be useful if you want to regularly shutdown or reboot the machine on some definable interval without

need help on using crontab

2014-02-18 Thread Long Wind
I want to shutdown at some time, so I create a file named cmd with a line below: 3 5 * * * root /sbin/shutdown -h now I run the command : crontab cmd but it doesn't shutdown Why? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble?

Re: need help on using crontab

2014-02-18 Thread Tom Furie
On Wed, Feb 19, 2014 at 12:26:38AM -0500, Long Wind wrote: I want to shutdown at some time, so I create a file named cmd with a line below: 3 5 * * * root /sbin/shutdown -h now I run the command : crontab cmd but it doesn't shutdown Why? Where did you create the file? Are you

Re: need help on using crontab

2014-02-18 Thread Long Wind
On 2/19/14, Tom Furie t...@furie.org.uk wrote: Where did you create the file? Are you expecting the machine to shutdown when you invoke 'crontab cmd'? Cheers, Tom -- I want to shutdown at 5:03 I check with crontab -l it seems OK -- To UNSUBSCRIBE, email to

Re: need help on using crontab

2014-02-18 Thread Raffaele Morelli
2014-02-19 6:26 GMT+01:00 Long Wind longwind2...@gmail.com: I want to shutdown at some time, so I create a file named cmd with a line below: 3 5 * * * root /sbin/shutdown -h now I run the command : crontab cmd ?? but it doesn't shutdown Why? First of all, is cron running? Have a

Re: need help on using crontab

2014-02-18 Thread Tom Furie
On Wed, Feb 19, 2014 at 12:56:50AM -0500, Long Wind wrote: I want to shutdown at 5:03 I check with crontab -l it seems OK Depending on how you created the file the format may or may not be okay. Did you create the file in /etc/cron.d, or as a user with 'crontab -e'? Given that you say