[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Shell script reading stdin?



I'm trying to write a shell script that will noninteractively accept
a chunk of text on standard input, but haven't been able to figure out
how to go about doing so.  What I'm trying to do is write a script that
will get called by an exim filter.  Accroding to the exim docs, when a
script is called by the filter, the script is run and the message is
passed on the standard input.

I tried having a look through the bash man page - I found references on
redirecting stdin and stdout and stderr, all of which I already knew.
What I couldn't find was *any* mention of was how to *use* stdin from
within a shell script.  Anyone here ever done anything like this?
-- 
Mike Werner  KA8YSD           |  "Where do you want to go today?"
                              |  "As far from Redmond as possible!"
'91 GS500E                    |
Morgantown WV                 |  Only dead fish go with the flow.



Reply to: