Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-25-2004, 08:12 AM   #1
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

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/ -cron

Thank you,
The Gnubie
Old 02-25-2004, 08:51 AM   #2
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/ -cron; echo "Virus update ran " `date` >>/var/log/virus.log
Old 02-25-2004, 08:59 AM   #3
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

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


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 01:51 AM
Cron job to run every monday wednesday and friday...? init Linux - General 4 07-29-2004 11:24 AM
how to run this cron job ashley75 Linux - General 5 05-24-2004 11:20 AM
Cron job does not run brentos Linux - General 6 12-12-2003 02:37 PM
how to set cron job to run every 5 mins? gsbarry Linux - General 7 05-28-2003 12:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

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