system() call results in "Signal 126"
4 views (last 30 days)
Show older comments
I'm running Matlab 2015b on Linux (Ubuntu 14.04) and am trying to call an external program using a system call. Even tough I do have the rights to execute the external program, which I verified, a signal 126 "no permission" error occurs. My understanding is, that Matlab should have the same execution rights as my user. Any ideas what could cause the error? I also verified that the file is found.
The Matlab code is available here: https://sites.google.com/site/scarabotix/ocamcalib-toolbox And the line of interest
callBack = system(callString);
is in the file "click_ima_calib.m". Approx line 75.
2 Comments
Walter Roberson
on 10 Sep 2015
I suggest you use system('id') to investigate which userid you are running as (just in case), and that you use the Linux ldd inside and outside of MATLAB to (i.e., !ldd ...) to determine whether you have a path problem.
Check in particular whether the binary is suid or guid in case the environment variable changes that MATLAB makes, such as to LD_LIBRARY_PATH, might be affecting whether the binary will execute.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!