>anyone know how to setup cron to receive email from the owner of the
account
>and for cron to run a process to send all the web stats to another email
>address?
>
>specifically i want to do this:
>
>1)issue a email from my desk at work to my email account on my linux box
>telling cron to issue a command like fgrep mccorkle
>/var/log/httpd/access_log >access.may.log
use mail -s subject [EMAIL PROTECTED] <myfile.input to ship stuff out of your
box. You don't need cron at the other end... you should investigate procmail
over there. procmail is basically a program that has set of rules that says
when a piece of mail matches a certain rule... do something with it.
>2) then have cron send me a email containing that log to my email at work.
Again, not cron, but the script that procmail above triggers upon the
receipt of your recognised mail that was initiated by cron on your local
system would, as a last step, | mail -s results [EMAIL PROTECTED]
Is that enough to get you going?
DL
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.