Python : os.system - not working ?

Hi,

 

I am new to Python so maybe I missed something obvious...

 

I'm trying to call an external process from my metadata agent :

 

os.system('php -f /home/matt/scripts/test/test.php')

 

I checked path, file permissions...

My agent works, the php script work... the first just does not call the second...

 

Any suggestions ?

Hi,

I am new to Python so maybe I missed something obvious...

I'm trying to call an external process from my metadata agent :

os.system('php -f /home/matt/scripts/test/test.php')

I checked path, file permissions...

My agent works, the php script work... the first just does not call the second...

Any suggestions ?

Not tried it myself, but maybe this one here:

http://docs.python.org/2/library/subprocess.html

/Tommy

Not tried it myself, but maybe this one here:

http://docs.python.org/2/library/subprocess.html

/Tommy

Thank you.

You are right. os.system call is pretty old.

Tried to call my script with subprocess but no luck... -(

The line before the call, I Log some output, and it appears in the log file, so my agent "works"... maybe some security reason prevents the call of outside processes from within an agent... ?

https://forums.plex.tv/topic/96604-launching-external-applications/?p=565244

/Tommy

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.