Can somebody post me their cron jobs for these so I can add them how they should be please.
as far as im aware the cron just runs the generate.pl script.
So locate that (on mine its in /etc/webmin/sarg/)
then just create a cron to run that once a day/week whatever ?
as i use webmin it is all configured in there.
but to create a cron, I would just use nano to create something like this and call it like sarg.sh or something:
then chmod +x to make it executableCode:
and then stick it in the /etc/cron.daily folder.
Youll need to change it to whatever the location of the generate.pl is for you
(slocate is a good util i use all the time, if its installed just type "locate generate.pl" and it will show you where it is)
My mistake, I seem to have this in my crontab instead.
You can get the sarg-reports script here:Code:
# use /bin/bash to run commands, instead of the default /bin/sh
00 08-18/1 * * * /root/sarg-reports today > /dev/null 2>&1
00 00 * * * /root/sarg-reports daily > /dev/null 2>&1
00 01 * * 1 /root/sarg-reports weekly > /dev/null 2>&1
30 02 1 * * /root/sarg-reports monthly > /dev/null 2>&1