I am trying to call system commands from perl, using system()
.
That usually works fine, but when I don't start the perl script myself, but have a compiled C program run it using the C popen()
function, then perl is not able to execute its system commands. Perl's system()
then returns with exit code 13.
It works only if I use the backticks in Perl, instead of system
. Does anyone know why?
system()
I don't see anything, but get the bad return value ...pclose()
function in my C program returns code 13, after executing the perl script usingpopen
. Maybe it's the system setup here ...