LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-25-2004, 09:12 AM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Rep: Reputation: 30
Did my Cron job run?


I have looked around and I am having problems finding an answer to this very basic question..

My first, and only, cron job is to go look for anti-virus updates. The problem is, how do I know if it ran successfully? Is there an easy way to check?

46 14,23 * * * /usr/local/f-prot/tools/check-updates.pl -cron

Thank you,
The Gnubie
 
Old 02-25-2004, 09:51 AM   #2
lone_nut
Member
 
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
How about replacing the line with this one (it requries root acces to write to /var/log/ directory though)
46 14,13 * * * /usr/local/f-prot/tools/check-updates.pl -cron; echo "Virus update ran " `date` >>/var/log/virus.log
 
Old 02-25-2004, 09:59 AM   #3
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Original Poster
Rep: Reputation: 30
Sweet, Thank you for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to run cron job fahad26 Linux - General 3 06-30-2005 02:51 AM
Cron job to run every monday wednesday and friday...? init Linux - General 4 07-29-2004 12:24 PM
how to run this cron job ashley75 Linux - General 5 05-24-2004 12:20 PM
Cron job does not run brentos Linux - General 6 12-12-2003 03:37 PM
how to set cron job to run every 5 mins? gsbarry Linux - General 7 05-28-2003 01:30 PM


All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration