No, you need to add the nohup to the commands separately.
Something like this is recommended:
nohup sh -c "cmd1 | cmd2" &
Or alternatively:
nohup $SHELL <<EOF &
cmd1 | cmd2
EOF
No, you need to add the nohup to the commands separately.
Something like this is recommended:
nohup sh -c "cmd1 | cmd2" &
Or alternatively:
nohup $SHELL <<EOF &
cmd1 | cmd2
EOF