system() call results in "Signal 126"
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 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.
Martin
am 10 Sep. 2015
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!