Exit status of system() call
hi folks,
i need to execute a script from my c program using system() or popen() and i should able to collect its status in my code i tried with "wait", "WEXITSTATUS" calls but iam not able to get the status correcly(getting junk) WEXITSTATUS(system("./myscript") ); is there any to collect the status of popen or system in our code if so please let me know i cannot use pipe for reading the status please suggest me the better possible ways thanks in adv ~shankar |
Quote:
Code:
int run_myscript(void) |
Hai David,
thaq very much its working fro me ~shankar |
All times are GMT -5. The time now is 11:04 AM. |