Re: Piping output to a program
[email protected] (Paul Jarc)
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
Daryl Tester <[email protected]> wrote: > Use the "!processor" option, which will feed the current logfile in > through stdin and record stdout to the final destination log file. > This means that you'll need to use a tee-like process to get a > duplicate of the data, You don't need tee. multilog can send your log data to multiple destinations: #!/bin/sh exec multilog t \ ./main \ s4096 !processor ./processed The s4096 option makes multilog rotate (and run the processor) more often for ./processed than it does for ./main. paul