I changed root /var/spool/cron/
/home/vpopmail/bin/clearopensmtp 2>&1 >/dev/null

I am using redhat 7.3 and I get:
No manual entry for sh
When I run the command:
man sh


----- Original Message ----- From: "Alberto Brealey Guzmán" <[EMAIL PROTECTED]>
To: <vchkpw@inter7.com>
Sent: Monday, November 07, 2005 11:18 AM
Subject: Re: [vchkpw] Re: qmail+vpopmail on redhat 7.3 server gets very busy

Sam wrote:
>>Cron [EMAIL PROTECTED]> /home/vpopmail/bin/clearopensmtp 2>$1  /dev/null
>>Body: /bin/sh: $1: ambiguous redirect
>>How can I fix this error in redirect?
>change the "2>$1" to "2>&1", as it should be.
How do you edit "clearopensmtp" to change the "2>$1" to "2>&1" ?

probably by running 'crontab -e' as root: the redirect is not in the
clearopensmtp command, but in the command that the cronjob is running.
Actually, replace the command run by cron with:

   /home/vpopmail/bin/clearopensmtp 2>&1 >/dev/null

since the one that is running in your server is missing the redirect
from STDOUT to /dev/null.

>"man sh" will explain this in more detail.
"man sh" is not working.  How to tell  the "man" command where to look to
find man pages fro sh?

with the MANPATH env variable, but the 'sh' manpage should be there..
what OS are you running? What error do you get when you run 'man sh'?

hope this helps,

Alberto Brealey Guzmán

Reply via email to