My C program in UNIX can be triggered multiple times, but I want only the first one to run completely, while others coming out seeing that already an instance is running. Please help me to achieve this.
I was trying with getenv() and putenv(), but i am not having my variables in UNIX.
Thanks,