[newbie] Mail cron job output.
I am running the following cron job: /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 I get the following message : Output from command /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 .. /bin/sh: line 1: mail: command not found Any ideas how to get the mail command to work? TIA, Simon. -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
[newbie] Mail cron job output.
I am running the following cron job: /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 I get the following message : Output from command /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 .. /bin/sh: line 1: mail: command not found Any ideas how to get the mail command to work? TIA, Simon. -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Saturday 26 March 2005 13:58, Simon wrote: I am running the following cron job: /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 I get the following message : Output from command /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 .. /bin/sh: line 1: mail: command not found Any ideas how to get the mail command to work? TIA, Simon. Try /usr/bin/rkhunter -c | /bin/mail [EMAIL PROTECTED] -s Rkhunter Check 21 If that does not work check the mail package is installed. derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Saturday 26 Mar 2005 14:15, Derek Jennings wrote: Try /usr/bin/rkhunter -c | /bin/mail [EMAIL PROTECTED] -s Rkhunter Check 21 If that does not work check the mail package is installed. Derek I tried that but it failed with : /bin/sh: line 1: /bin/mail: No such file or directory what mail package should I have installed? -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Saturday 26 March 2005 07:58 am, Simon wrote: I am running the following cron job: /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 I get the following message : Output from command /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 .. /bin/sh: line 1: mail: command not found Any ideas how to get the mail command to work? TIA, Simon. Simon, this is how I have my rkhunter cronjob setup /usr/local/bin/rkhunter --cronjob --createlogfile -c and I have the following entry in my /etc/crontab: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin [EMAIL PROTECTED] therefore all cronjob outputs are sent to my email address, this includes my Spamassassin statistics outputs, hourly logcheck output, and rules_du_jour output. HTH Chris -- Chris Registered Linux User 283774 http://counter.li.org 08:43:53 up 12 days, 13:18, 1 user, load average: 0.23, 0.43, 0.46 Mandrake Linux 10.1 Official, kernel 2.6.8.1-12mdk Blow it out your ear. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Saturday 26 Mar 2005 14:50, Chris wrote: Simon, this is how I have my rkhunter cronjob setup /usr/local/bin/rkhunter --cronjob --createlogfile -c and I have the following entry in my /etc/crontab: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin [EMAIL PROTECTED] therefore all cronjob outputs are sent to my email address, this includes my Spamassassin statistics outputs, hourly logcheck output, and rules_du_jour output. Thanks for that Chris, my Mailto is root which has not been a problem in the past as I have just put the email address in the pipe.(Pre the last fresh intall of Mdk 10.1) The problem is that there seems to be no mail package??? Any ideas? -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Saturday 26 March 2005 14:38, Simon wrote: On Saturday 26 Mar 2005 14:15, Derek Jennings wrote: Try /usr/bin/rkhunter -c | /bin/mail [EMAIL PROTECTED] -s Rkhunter Check 21 If that does not work check the mail package is installed. Derek I tried that but it failed with : /bin/sh: line 1: /bin/mail: No such file or directory what mail package should I have installed? mailx derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Saturday 26 Mar 2005 15:17, Derek Jennings wrote: mailx That's it Derek, I installed the missing mail program and all works fine now. Thanks to Chris and your good self. Simon. -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Sat, 2005-03-26 at 23:35, Simon wrote: I am running the following cron job: /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 I get the following message : Output from command /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 .. /bin/sh: line 1: mail: command not found Any ideas how to get the mail command to work? TIA, Simon. You want to have absolute paths in that script: /usr/bin/rkhunter -c | /usr/bin/mail [EMAIL PROTECTED] -s Rkhunter Check 21 -- stephen kuhn mobile: 0410-728-389 illawarra and regional new south wales --- GNU/Linux/OpenSource Solutions and Alternatives 100% Microsoft Free :: Crashing is NOT an option. Registered Linux User # 267497 --- Wear Apple/Macintosh garb to show the world that we're not crawling into holes and dying. -- Guy Kawasaki Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Mail cron job output.
On Saturday 26 Mar 2005 22:33, Stephen Kühn wrote: On Sat, 2005-03-26 at 23:35, Simon wrote: I am running the following cron job: /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 I get the following message : Output from command /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s Rkhunter Check 21 .. /bin/sh: line 1: mail: command not found Any ideas how to get the mail command to work? TIA, Simon. You want to have absolute paths in that script: /usr/bin/rkhunter -c | /usr/bin/mail [EMAIL PROTECTED] -s Rkhunter Check 21 -- stephen kuhn Thanks Stephen. It turned out I didn't have the mail package installed Regards, Simon. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com