also sprach John Patton (on Thu, 06 Sep 2001 02:33:01PM -0500): > I couldn't get a variation of that working either... but if > myprog is a perl script and is driven by the while(<>) loop, > then you should be able to just pipe the output of the grep > right into it, like so: > > tail -f /var/log/syslog | grep something | myprog > > I'm not sure if that can be done directly with a shell > script though.
why not, what's the difference??? and could someone give me a perl one-liner that takes each such line fed into its STDIN, and for each line, calls an external shell script with the entire line as argument? martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" [EMAIL PROTECTED] -- "friendships last when each friend thinks he has a slight superiority over the other." -- honore debalzac
pgpLEU6bJU2sn.pgp
Description: PGP signature