Artificial intelligent assistant

Use nohup and return to terminal and pipe to logger 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 `ctrl` `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?

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.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a5a21cfa2dbfbe8a4694a6e613255fef