nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Cron problem

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 ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 03-08-2006, 09:36 PM
Junior Member
User
 
Join Date: Feb 2005
Location: Pune
Posts: 11
Rep Power: 0
vin6384
Default Cron problem

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-08-2006, 10:48 PM
rockdalinux's Avatar
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
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +5.5. The time now is 03:15 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36