Hi,
I am new to Linux but I think this will help:
There is a directory in Linux called /proc that keeps all running processes information. You can find out if wget is running or not by searching for it in running processes list.
getProcessID() will perform this search for you, all you need is to supply it with the wget process name. You can find a sample code here:
http://programming-in-linux.blogspot...name-in-c.html
Mobin