2009/4/8 Abhishek Amberkar [अभिषेक] abhishek.amberkar@gmail.com:
On Wed, Apr 8, 2009 at 11:49 AM, Jagdish Chhailkar cjagdish69@gmail.com wrote:
Can someone let me know, how can we do this? I also know that I need to do a cron job for that, but how?
with any user you can type in "crontab -e" . It will open a window in which you can type in as follows : 5 * * * * /usr/bin/sarg(whatever the command you type on command prompt) and save this file. It will start executing the command after each 5 minutes.
it should be
*/5 * * * * for every 5 minutes
I'll do this for reporting of every 5 mins. But I still have one doubt. I've sarg in my cron.daily / weekly / monthly folder -rwxr-xr-x 1 root root 84 2008-03-23 12:46 sarg
The containts of the sarg file are as below,
#!/bin/sh
if [ -x /usr/sbin/sarg-reports ]; then /usr/sbin/sarg-reports daily fi
This tells me that the sarg should run on daily/weekly/monthly basis, but then why is it not working? These entries were auto generated when I installed the sarg and I've not done any changes in it, yet. I'm on Ubuntu 8.04
~~~~~~~~~~~~~~ Sameer Shinde. M:- +91 98204 61580 Millions saw the apple fall, but Newton was the one who asked why.