Running Shell Scripts in Linux C Code to Retrieve Return Values
When programming in C under Linux to execute Shell commands or scripts, the system function is generally used. However, it only returns whether the execution was successful or failed, without returning the corresponding return value of the executed Shell command or script. The following method can be used to achieve this requirement:Temporary FileSince the return … Read more