I am running a shell script from a rc file in Linux. The shell script is going into a loop which runs for 8 hours. Now I want to prevent the shell script from running when Linux boots or I need to find a way to kill the shell script when it is running. I tried using
kill $! and
Ctrl+C etc. Nothing seems to work. Can you suggest a way out. I am new to Linux.