How to know how many files are running.?

view full story

http://www.unix.com – Hi friends I want to know can we check how many php files are running currently or can we know that a file is running or not. Maine issue is that i am running two or three files, there are lots of code on them, each files takes 20 minutes to complete. i want to know that first file is completed or not using shell command, so any other file will not be run untill first one complete its all process. thanks (HowTos)