calling system command in daemon
Hi all,
I wrote some function to monitor some process using popen("ps -e | grep ...") and if no output is there, I try to start the process with system("...").
The function I wrote works as an program, but when I start it as a daemon, it stops working. Anyone knows the reason why? thanks in adance.
|