my script gets call multiple times within the same second.
since the script will be doing file i/o and verification, i don't want more than one instance running at any given time.
what are the code that i can use quit one instance if another one is already running?
i've tried creating a lock file and seems doesn't work since multiple instance taking places almost simultaneously.
what are the possible solutions?