Hi There,
This is linux programming question.
I have a server-type program, written in C, that listens to a socket, and provides several info to clients connected to it. When I run this program manually on a terminal, or on the background everything is fine. I can close the terminal and the program will keep serving clients as expected.
If, however, I start it from the crontab, some services don't run. For example a command like 'rc= system("ls > x.x") ; fails.
What can I do to fix this problem? Thanks for any tips
This is linux programming question.
I have a server-type program, written in C, that listens to a socket, and provides several info to clients connected to it. When I run this program manually on a terminal, or on the background everything is fine. I can close the terminal and the program will keep serving clients as expected.
If, however, I start it from the crontab, some services don't run. For example a command like 'rc= system("ls > x.x") ; fails.
What can I do to fix this problem? Thanks for any tips