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 ... – user9474 Jul 21 '10 at 00:39pclose()function in my C program returns code 13, after executing the perl script usingpopen. Maybe it's the system setup here ... – user9474 Jul 21 '10 at 00:41pclosewould give this error. I can see that it successfully executed the perl script. – user9474 Jul 21 '10 at 01:08