in reply to Re: removing lines from a file
in thread removing lines from a file
The FIFO solution leaves the duty to write the logs to the Perl filter, not to the original application, and the filter is likely to write regular files - something that a logrotate program should not be upset with.
As for the redirection, I don't really understand how it should work. Redirecting STDOUT to STDERR means that you basically lose them all in the listener application. The pipeline
links producer's STDOUT to consumer's STDIN, so the suggested redirection leaves you with an empty STDIN and nowhere to read log lines from.producer | consumer
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|