Shell scripts in sendmail aliases

Posted by Rodrigo Asensio on Server Fault See other posts from Server Fault or by Rodrigo Asensio
Published on 2010-05-04T16:04:54Z Indexed on 2010/05/04 16:08 UTC
Read the original article Hit count: 213

Filed under:

I'm trying to execute a sendmail alias script using this

# aliases for my system
addressx:        |sh /usr/share/scripts/myscript.sh  WON'T WORK
addressx:        '/usr/share/scripts/myscript.sh'  WON'T WORK
addressx:        '|/usr/share/scripts/myscripts.sh'  WON'T WORK

Can I execute scripts or it must be a binary file ?

© Server Fault or respective owner

Related posts about sendmail