Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a strange one here, this just started failing after a logwatch update for FC4.
I get this message in when this is run from cron:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 941,
<TESTFILE> line 3.
Can't execute sendmail -t: No such file or directory
Here's the crontab entry, and when I run it manually it works. Any ideas?
It sounds like the update overwrote the logwatch.conf file (on my system it's in /etc/log.d/conf/logwatch.conf). What is the mailer set to in your conf file?
I'm not sure this will help but one thing to be aware of is that the environment that cron uses to execute tasks is (mostly) empty. You might find that logwatch is assuming that sendmail is in the path but PATH isnt set.
Try putting this at the top of your crontab and see if it works then:
I noticed in the logwatch.conf it has sendmail as the defaul mailer it uses sendmail -t. Since I am usung postfix, what should the default mailer be? Or should I commnet out that line?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.