This is a discussion on Cron problem within the Linux software forums, part of the Linux Getting Started category; Dear All, I created one shell for up2date, manually its working fine & also i set the cron for the ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Dear All,
I created one shell for up2date, manually its working fine & also i set the cron for the same but how can i create log for every cron which is succefully run. e.g 30 23 * * * /root/up2date.sh success >> /tmp/cronlog/cronlog.file Is it right path or i need to define anything else for the same. Vinay |
| Sponsored Links | ||
|
|
|
||||
|
You can create log file using script itsel no need to use syntax:
Code:
30 23 * * * /root/up2date.sh success >> /tmp/cronlog/cronlog.file Code:
30 23 * * * /root/up2date.sh success
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script to Automatically Delete a File via Cron Job | kakarla | Shell scripting | 2 | 01-29-2008 09:54 AM |
| Cron job on Fedora 7 | angenet | Linux software | 1 | 10-04-2007 06:11 PM |
| Cron to send analog | neo424 | Shell scripting | 0 | 07-13-2007 02:39 PM |
| How do I configure Linux UNIX cron tasks? | sweta | Getting started tutorials | 1 | 07-13-2007 12:34 AM |
| UNIX cron job setup how to | gbdood | Linux software | 1 | 08-27-2006 11:07 AM |