Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In Postfix I can configure to forward emails to a script in /etc/aliases like

mailuser: | mailprocessor.pl

If I create a named pipe with

mkfifo /opt/mypipe

and then change /etc/aliases to write directly to the pipe like

    mailuser: | /opt/mypipe

it is nothing writing to the named pipe. What am I doing wrong? Or is is not possible to write to a pipe directly?

share|improve this question

migrated from stackoverflow.com Sep 19 '11 at 5:29

This question came from our site for professional and enthusiast programmers.

1 Answer 1

It might be using the name of your pipe as a command and trying to execute it when using the | syntax. Maybe try:

mailuser: | cat > /opt/mypipe
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.