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 [EMAIL PROTECTED]