I can redirect output to
logger like this:
nohup bin/mytask | logger
But the process hangs, and my cursor doesn't return to the terminal after the command is sent. (I would have to return to terminal with
c and I don't want to quit the process.
So I try this command:
nohup bin/mytask & | logger
But I get this error:
bash: syntax error near unexpected token|'`
How can redirect the output to the
logger and then return tom the terminal?