If I start the script by ./test.sh &
, I am able to kill using kill -SIGINT PID
.
But if I start my shell script using nohup ./test.sh &
I am unable to kill the process using kill -SIGINT PID
.
Kindly need your advice to kill the script using kill -SIGINT PID