C function for finding specific running process
Posted on 2003-02-22
I am in need of determing if a particular process is running by my library, if it is then great I will continue on, if not I want launch a specific application... Is there an easy way or function that I can use to determine this?
Also is there an easy way that I can redirect stderr to a file? More specifically I am using perror() and it writes error message to stderr, well I am writing a daemon and I want to log all errors to a log file.. Is there an easy way to redirect stderr and perror to a file?
Thanks in adavance
PS sorry for the low points... I am starting out on this site and only have 75 points.