revjack(_at_)Radix(_dot_)Net <revjack(_at_)Radix(_dot_)Net> wrote:
'mymail' looks like this:
#!/usr/bin/perl
read(STDIN, $buffer, 655350);
open (MOUT, ">mymail.out");
print MOUT $buffer;
close (MOUT);
writable by all. I am using the bash shell under unix System V Release
4.0. I am using procmail v3.10.
mymail: syntax error at line 2: `read' unexpected
Your kernel doesn't support support #! scripts. The Bash you're
using is faking it, probably. Procmail won't fake it (unless you make
it invoke bash first).
Change the script into a regular #!/bin/sh script, then
exec perl with the script as an argument in it.
--
Sincerely,
srb(_at_)cuci(_dot_)nl
Stephen R. van den Berg (AKA BuGless).
Warning: Dates in calendar are closer than they appear.