Web Hosting Talk







View Full Version : Cron Job | mail to specific email address?


phpjames
04-30-2002, 06:28 PM
If I want to have the results of chkrootkit mailed to me can I do it via a cron job like this?

0 3 * * * (cd /path/to/chkrootkit; ./chkrootkit 2>&1 | mail -s "chkrootkit output" ) myemail@mydomain.com)

normally it would be to a user account like so

0 3 * * * (cd /path/to/chkrootkit; ./chkrootkit 2>&1 | mail -s "chkrootkit output" root)

but I want it sent to a specific email address and not a user account. Is this possible? Notice the bold above. Thank you.

S2 Web Design
04-30-2002, 09:58 PM
Sure, there shouldn't be any problems with doing that but I would take out the extra ")".