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
As mentioned by rwos , but adding inline trapping.
bash -i -c "trap ' ' SIGINT; tail -F '$1'; trap - SIGINT"
This would work without closing putty session when issuing subsequent SIGINT signals (that was my problem)