| I'm trying to run a perl script through the procmail in a crontab.
| But I'm getting an error "Error writing to ParseMail.pl", when the cron
| However, when I run the same script from command line, it works fine,
| without any errors.
My first guess is that the path to perl on the machine where your cron jobs
run is different from its location on the machine where your shell sessions
operate, so the #! line at the top of your perl script doesn't lead to perl
when it's invoked from crontab.
procmail mailing list