How to kill a script ?
I know that i cant ask questions from my assignment. But i am stuck at one point. Following is my assignment question.
Write a shell script which will count down (i.e. display) from 10 to 1, display "bang", and repeat endlessly.
There will be a 1 second delay between the display of each count.
The script is to be run in the background.
I have made the script and its working fine. But the main problem is that i dont know how to kill that script. My professor needs a demonstration from me and wants to see how i am killing the script. Ctrl^z and Ctrl^c are not working.
Here is my script:
for (( i=10; i>0; i--));
sleep 1 &
printf " $i \n"
Could you please help me in this ??