This is a discussion on Crontab within the Linux software forums, part of the Linux Getting Started category; Hi everyone, On Windows platform, I can run schedule task for shut down my windows machine. How about on linux? ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi everyone,
On Windows platform, I can run schedule task for shut down my windows machine. How about on linux? I am trying to schedule a task to shutdown SuSe10 everyday at 1:00AM in the morning. How can I do that? Here is what I did, but it never works. I run the command "crontab -e" and then I enter this: 0 01 * * * shutdown -h now Does anyone know how to do it? Please let me know. I really apprecaite that. |
| Sponsored Links | ||
|
|
|
|||
|
You're 100% right. Thank you so much. It's working like a dream. By the way, when I do the schedule to print out the log file on my system. Say, I want to print out the file in /var/log/messages.
# which lpr /usr/bin/lpr In the crontab file, I put: 0 18 * * * /usr/bin/lpr /var/log/messages It should print out the log file(message at 6PM everyday. However, it doesn't. I don't know why. At the command when I run# /usr/bin/lpr /var/log/messages It prints out fine. But I doesn't print in the crontab file. Do you know why? I really appreciate that. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| crontab | click007 | Getting started tutorials | 6 | 10-19-2007 05:45 PM |
| start and stop service in crontab. | gthian | Shell scripting | 7 | 05-31-2007 12:04 PM |
| about crontab | darknet | Shell scripting | 2 | 01-04-2007 07:01 PM |
| /etc/crontab file permissions or ownership can cause problem | chiku | Linux software | 2 | 12-20-2006 02:57 AM |
| list every user's crontab script | marinm | Shell scripting | 5 | 07-20-2005 12:24 AM |