I have a long running process which is writing status information to stdout, and logging debug information to stderr.
I would like to pipe the stderr output to logger
, so that anything written to stderr actually ends up going to syslog, while at the same time being able to read the process' stdout.
Is it possible to do this?