Quote:
Originally Posted by mike1950r
Code:
:0 Wic
* ? test ! -d /var/mail/test
| 'chmod 662 /var/mail'
Code:
procmail: Executing "chmod 662 /var/mail"
/bin/sh: 0: Can't open chmod 662 /var/mail
procmail: Non-zero exitcode (127) from "chmod 662 /var/mail"
|
Normally the shell breaks down a command line into words, by looking for spaces. The first word identifies the utility command to be called, and the remaining words are passed to it as arguments:
[0] = chmod
[1] = 662
[2] = /var/mail
Trouble is, your single quotes are escaping all the spaces, so the first word is the entire line:
[0] = chmod 662 /var/mail
The error message is trying to tell you there is no utility command with that name.