Marc Perkel <marc@...> wrote:
> OK - I'm running tail on exim logs and extracting IP addresses that
> match a specific criteria. So I have a stream of raw IP addresses coming
> in that I want to pipe into a program that takes each IP address and
> runs a command with the IP address as the parameter.
>
> How do I do that?
I believe if you pipe the output (stream of IPs) to:
xargs -n 1 COMMAND
where COMMAND is your command that takes one IP as a parameter; you'll get
what you want.
mikeS
--
Michael Sprague | mfs@...
Partner | System and Network Engineering (SaNE), LLC
use STD::disclaimer;
--
## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details
at http://www.exim.org/ ##