in reply to Mail::Sender returns malformed address

Recall that running under cron you don't have the same environment that you do under a shell session. You may need to explicitly describe the paths required to run the script, with either use lib statements in the script, or an environment definition on the crontab file.

--t. alex

"Here's the chocolates, and here's the flowers. Now how 'bout it, widder hen, will ya marry me?" --Foghorn Leghorn

Replies are listed 'Best First'.
Re: Re: Mail::Sender returns malformed address
by killraven (Novice) on Mar 25, 2002 at 18:55 UTC
    I should have been more explicit. The same code works under HPUX11 and Perl 5.6.0. I did have the script run my .profile as well as setting up some default paths as well as trying to get bourne shell out of the equation by doing the following on the crontab line.
    30 09 * * * /usr/bin/ksh $HOME/testmail.sh
    Which in turn calls the perl script that's failing, to no avail. I thought about the use lib but I'm successfully using Mail::Util so I wouldn't think it would help. killraven