system() rountine returns: access: unix error (2) No such file or directory
I am running shell command through C program using system() routine.
I am executing "opcontrol --status" an executable using the this routine and I get the following error.
access: unix error (2) No such file or directory
But when I give the complete path to the executable it runs perfectly.
The executable is installed in "/usr/local/bin/"
And the path variable has this path.
What can be the possible issue?