Thread: Cron problem
View Single Post

  #2 (permalink)  
Old 03-08-2006, 10:48 PM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

You can create log file using script itsel no need to use syntax:

Code:
30 23 * * * /root/up2date.sh success >> /tmp/cronlog/cronlog.file
Just use
Code:
30 23 * * * /root/up2date.sh success
And in script log everything to /tmp/cronlog/cronlog.file file.
__________________
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
Reply With Quote