how to modify my file adding a trap for SIGINT and SIGTERM
HELP Please!!!!
I have to modify the following script to add a trap for SIGINT and SIGTERM, save it and run it in the background. I have no clue and searching on the net isn't helping and my book isn't helping.
Here is my code
#!/bin/bash
count=1
echo "start of the program"
while [ $count -le 10 ]
do
echo "Loop #$count"
sleep 10
count=$[ count + 1 ]
done
echo "end of the program"
|