in reply to Limit on attached filename for Mail::Sender?

Have you checked the file permissions?

When things go wrong in a cron job it's often a permissions problem, usually the cron job is running as a different user and can't access the file.

  • Comment on Re: Limit on attached filename for Mail::Sender?

Replies are listed 'Best First'.
Re^2: Limit on attached filename for Mail::Sender?
by bulrush (Scribe) on Dec 03, 2014 at 17:47 UTC
    I'm still in a testing phase and I'm not using cron yet. I'm running programa.pl from the command line, and in programa.pl and programb.pl I do check for the existence of the file to attach before continuing. Both those file existence checks pass.

    Besides, when I run programa.pl at the command line, I'm a logged in user 'chuck', so the owner of the created XLS file is also 'chuck'. So permissions should not be an issue.

    Anyway the file permissions on the XLS file created by programb.pl is: -rw-rw-rw-.