[CentOS] Cannot execute /usr/bin/fetchmail

Stephen Harris 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"
eg
  /bin/sh -c /usr/bin/fetchmail
and that works just fine.

  $ cat /etc/redhat-release
  CentOS release 4.4 (Final)
  $ uname -sr
  Linux 2.6.9-42.0.10.EL
  $ /bin/sh -c /usr/bin/fetchmail
  fetchmail: no mailservers have been specified.

-- 

rgds
Stephen



More information about the CentOS mailing list