GNU bash, version 1.14.7(1)
I have a script is called \"abc.sh\" I have to check this from abc.sh script only... inside it I have written f
abc.sh
Definitely works.
if [[ `pgrep -f $0` != "$$" ]]; then echo "Exiting ! Exist" exit fi