How can i detect a program execution