Results 1 to 2 of 2
Hi ,
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.
...
- 10-23-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 1
system() rountine returns: access: unix error (2) No such file or directory
Hi ,
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?
Thanks
Abhishek.
- 10-23-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Is the trailing slash in /usr/local/bin/ also in the PATH environment? If so, this is likely your problem. Please post the complete output of the PATH environment when you run your program.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote