Sending output to mail account through cron.
Hello! I am trying to send the output of "./chkrootkit" to one of my email addresses that is not on the local server. Under the chkrootkit webpage, it states:
# Can I run chkrootkit from cron?
Yes. For example, to run chkrootkit every day at 3am and mail the output to root:
0 3 * * * (cd /path/to/chkrootkit; ./chkrootkit 2>&1 | mail -s "chkrootkit output" root)
As you can tell, this is sending the output to the root user, but I want it sent to my email address (firstname.lastname@example.org) through a remote smtp server. Is this possible? I searched google and the 'mail' manual pages but I didn't see anything relevant. Thanks you any help!