capturing piped information

Michael Hudson mwh21 at
Mon Mar 13 18:58:43 CET 2000

Thomas <thomas at> writes:

> Hi everyone,
> I want to write a simple script which is run each time someone
> mails my list subscribe address: subsribe at  In my qmail 
> 'subscribe' alias I added a pipe which pipes all the mail to my script.  
> ie.:
> |/var/scripts/
> My problem :
> how do I access this piped information inside the script?
> Any suggestions or help appreciated.

It comes down stdin, so via sys.stdin or raw_input probably.


very few people approach me in real life and insist on proving they are
drooling idiots.                         -- Erik Naggum, comp.lang.lisp

More information about the Python-list mailing list