Possible Duplicate:
pipe stdout and stderr to two different processes in shell script?
I have a program which writes to stdout and stderr, I want to pipe the stdout into the stdin of the logger
command and pipe the stderr into the stdin of another logger
command where the facility, priority and tag are different from the first logger
command.
This command is run in the exec stanza of an upstart script on Ubuntu. Also I tried with subshells but it did not work.
Any idea how could I do this?
Thanks! :)