[CentOS] Cannot execute /usr/bin/fetchmail
lists at spuddy.org
Sun Mar 25 13:48:07 UTC 2007
On Sun, Mar 25, 2007 at 06:48:13PM +0800, Matt Arnilo S. Baluyos (Mailing Lists) wrote:
> I have noticed that commands run via cron and execute via /bin/sh, so
> I tried to run the fetchmail command manually. This is what I get:
> [root at scalix ~]# /bin/sh /usr/bin/fetchmail
> /usr/bin/fetchmail: /usr/bin/fetchmail: cannot execute binary file
> What could be the problem here? Anyone else having problems with fetchmail?
Cron doesn't run like that. Cron runs "sh -c"
/bin/sh -c /usr/bin/fetchmail
and that works just fine.
$ cat /etc/redhat-release
CentOS release 4.4 (Final)
$ uname -sr
$ /bin/sh -c /usr/bin/fetchmail
fetchmail: no mailservers have been specified.
More information about the CentOS