On 2003-01-05 16:16, Roman Neuhauser <[EMAIL PROTECTED]> wrote:
> # [EMAIL PROTECTED] / 2003-01-04 14:02:46 +1030:
> >   cat > $myfile
> >   server=`egrep -i < $myfile "In:  [HE][HE]LO"|sed 's/^.*LO *//' `
> >   if [ "$server" = "" ]; then
> >     server=`egrep -i < $myfile "^Subject.*errors from "|sed 's/^Subject.*errors 
>from //; s:\[.*::g' `
> >   fi
> >
> > Confusing, isn't it?  The thing is, this program is a filter.  The
> > first line copies stdin to $myfile for future (multiple) readings.
>
>     Ok, so you pipe the Postfix-generated message into B which slurps it
>     into $myfile and that is where you access it... I'm just a luser, so
>     excuse me if this is nonsense, but do you do that because stdin is
>     not seekable?

Sort of.  Standard input can be seekable.  When you redirect it using
something like:

        % blah < filename

The blah program can seek its stdin.  Pipes on the other hand are not
seekable.

- Giorgos


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to