procmail
[Top] [All Lists]

Re: Shell (?) problem with procmail

1996-10-10 12:36:51
Nils <nils(_at_)propertymall(_dot_)com> writes:
I have encountered a problem when I moved a procmailrc file
to a new linux system. I suspect it is to do with the shell
since the same file has worked under both SunOS and another
Linux system.
...
procmail: Executing " ( formail -A"X-PIM-Maintenance-Order-No: `echo $COUNTER`
 "
-I "To: nils(_at_)propertymall(_dot_)com" ; \
       echo "Order PIM-MAINTENANCE " $COUNTER " assigned"; ) | $SENDMAIL -t"
if: Badly formed number.
Illegal variable name.        

Clearly there is a problem in that the attempted pipe into the formail
is not recognised properly...

...but what can I do to solve this?


Since the word "if" doesn't appear in the action at all, it sounds like
the shell has a bad config file.  First of all, you should put

        SHELL = /bin/sh

just to make sure it's no trying to use a csh type shell.  Then if the
problem continues, check your .bashrc (Linux uses bash for /bin/sh) for
syntax errors.

Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>