[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] emailed site stats program?



On Mon, 12 Feb 2001, Joseph Bannon wrote:

> I'm looking for an email program I can put on my Raq3 that will email a
> website's stats every morning to the site owner. Is there any program that
> do this?

You don't really need a program to do this, just add a command to mail it
to him in the users crontab, actually, since cron mails the results
anyhow, all you have to do it spit out the file and he should get it...

su user (or log in as user)

crontab -e     (edit's users cron jobs)

add something like

MAILTO=useremailaddress
40 07 * * *     /bin/cat whateverthestatsfileis

That will mail him the file at 7:40 every day, if you want a html page it
gets messier however...

Use the full path to the stats file also...

ps: the editor for crontab by default is 'vi' , might want to read man
page for it first ;)

gsh