Hi,
Can any one help me in knowing how can I get the return codes/Error codes when using the system() command to fork a command?
Regards,
MK
Hi,
Can any one help me in knowing how can I get the return codes/Error codes when using the system() command to fork a command?
Regards,
MK
system() returns a status for executed command in the format that can be decoded by macros in sys/wait.h - like WIFEXITED.
You need to read: man 2 wait
Most of the time you call these two: