On Sat, 29 Dec 2007, mouss wrote:

Oooo! Script critique! My turn!

> > > # Filter for Spam
> > > cat | $SPAMASSASSIN > out.$$
> > > 
> > > cat out.$$ | /usr/sbin/sendmail -io -f $ORIGIN $TARGET
> 
> I too love cats. but "$cmd < $file" does the same as
> "cat $file | $cmd".

Why even have an explicit work directory and intermediate file?

 $SPAMASSASSIN | tee /tmp/toto.$$ | $SENDMAIL -f "$ORIGIN" "$TARGET"

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [EMAIL PROTECTED]    FALaholic #11174     pgpk -a [EMAIL PROTECTED]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  You do not examine legislation in the light of the benefits it
  will convey if properly administered, but in the light of the
  wrongs it would do and the harms it would cause if improperly
  administered.                                  -- Lyndon B. Johnson
-----------------------------------------------------------------------
 148 days until the Mars Phoenix lander arrives at Mars





Reply via email to