I'm using getmail to download e-mail from a pop server to OTRS. Under
Debian (Sarge) it worked great; Under SUSE 9.2, it works from from the
command line, but not in cron. It's possible this is related to the cron
environment being different than the regular one, but I'm not sure what
the important difference is.

The error:

getmail version 4.3.10
Copyright (C) 1998-2005 Charles Cazabon.  Licensed under the GNU GPL 
version
2.
SimplePOP3SSLRetriever:[EMAIL PROTECTED]@mail.example.com:995:
Delivery error (command PostMaster.pl 18129 error (255, fileparse(): 
need a
valid pathname at /opt/otrs/bin/PostMaster.pl line 26
BEGIN failed--compilation aborted at /opt/otrs/bin/PostMaster.pl line 
26.))
  msg 1/1 (1443 bytes), delivery error (command PostMaster.pl 18129 
error
(255, fileparse(): need a valid pathname at /opt/otrs/bin/PostMaster.pl 
line
26
BEGIN failed--compilation aborted at /opt/otrs/bin/PostMaster.pl line 
26.))
  1 messages retrieved, 0 skipped

Here are the lines in PostMaster.pl:

24: use File::Basename;
25: use FindBin qw($RealBin);
26: use lib dirname($RealBin);

I did some testing and it seems like when PostMaster.pl is run from the
command-line, the value of $RealBin is what would be expected; when it's
run from cron, it's unitialized.

Any ideas?

Thanks!

Jen


_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting für Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to