Re: [newbie] Example using tee command

2001-03-17 Thread David E. Fox
On Friday 09 March 2001 07:44, you wrote: > tail -f /var/log/syslog | grep "foobar" > foobar.txt | mailfile foobar.txt > [EMAIL PROTECTED] Well, the first reason this won't work as written is because of your use of 'tail -f' rather than plain 'tail'. 'tail -f' is basically 'tail forever', and s

[newbie] Example using tee command

2001-03-09 Thread Mark Johnson
Would anyone happen to know how to use the tee command? I have written a shell script call mailfile and I was trying to do something like this: tail -f /var/log/syslog | grep "foobar" > foobar.txt | mailfile foobar.txt [EMAIL PROTECTED] however that doesn't work like I thought it would. I lo