Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Security and catting to an env variable (Was: mkdir and $?)


<quote who="Andre Pang">

> looks like your approach works, although i'd be inclined to do
> 
>     STDIN=$(tee -a pantslog)	# you sure you don't want cat > pantslog?
>     mail jdub@xxxxxxxxxxxxxx < pantslog

No, tee -a means that I'm appending to a file, and putting everything out to
stdin as well, so if I just mailed pantslog, you would get the entire
appended file, not just the current bit in stdin. :)

- Jeff

-- 
      "Life is short. Forgive quickly. Kiss slowly." - Robert Doisneau