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 ?
dane22
December 4, 2013, 11:15am
2
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
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... ?
dane22
January 29, 2014, 3:32am
4
system
Closed
December 21, 2019, 12:35am
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.