I am using procmail v3.11pre4 1995/10/29 so I guess thats not the
problem. This is what I have been using to test it:
DUDE="$2"
:0
| echo $DUDE > /tmp/result
I then call procmail with
cat /usr/mail/root | /usr/local/bin/procmail -m /tmp/script a1 a2 a3 a4
and I get "a2" in result which is correct.
If I use this script:
DUDE="$@"
:0
| echo $DUDE > /tmp/result
I get nothing in the file. Very Strange! So I run it with verbose logging
on and I get:
procmail: [25069] Wed May 1 08:38:22 1996
procmail: Assigning "DUDE="
procmail: Executing " echo $DUDE > /tmp/result"
procmail: Assigning "LASTFOLDER= echo $DUDE > /tmp/result"
Folder: echo $DUDE > /tmp/result
Ahhhhhh!!!!!!
Thanks for your help so far.
---
Tony Jago, System Administrator, E-Mail:
T(_dot_)Jago(_at_)fit(_dot_)qut(_dot_)edu(_dot_)au
Faculty of Information Technology, Web: http://www.fit.qut.edu.au/staff/~tony
Queensland University of Technology.
Box 2434, Brisbane 4001, AUSTRALIA. "We need more horsepower!"
Phone: +61 7 3864-2573 Fax: +61 7 3864-1959