views:

38

answers:

0

I am running system("cmd") for n number of times in my cgi script This is read by Ajax on the client side. Out of n number of times there are some cases when the cmd couldn't be executed as file is not available. I want my system() call to work everytime and output something. What is happening now is that, it just prints the last value.