I have a script to kill a process.
The pidfile.pid contains the process id of the process to be killed.
I didn't understand all of the conditions
while [ -a pidfile.pid -a $i -le 5 ]
kill -s TERM `cat pidfile.pid`
i=`expr $i + 1`
Could any one please explain it for me?
What is the -eq checks in the following script
if [ $i -eq 6 ]
kill -9 `cat pidfile.pid`