I have the following script:
tail -f nohup.out echo 5
When I press Ctrl+C on tail -f, the script stops r
tail -f
You could just start the tail in a new shell, like so:
tail
#!/bin/bash bash -i -c 'tail -f nohup.out' echo 5