On Sunday, 5 January 2003 at 16:16:22 +0100, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2003-01-04 14:02:46 +1030: >> On Thursday, 2 January 2003 at 16:53:05 +0100, Roman Neuhauser wrote: >>> plus, you stuff the output in $myfile, and get the input from it as >>> well. How's that supposed to work? :) >> >> Heh. You're looking at this section, no doubt: >> >> 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. If >> it weren't a filter, the cat command would still read from stdin, so >> if it were a terminal, it would just appear to hang. > > 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?
Yes, exactly. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message