nohup bin/mytask | logger &
`&` is a command separator, just like `;` and `|`, and you have to background a whole pipeline, not just one command in it.
nohup bin/mytask | logger &
`&` is a command separator, just like `;` and `|`, and you have to background a whole pipeline, not just one command in it.