Re: Strange PHP/Python problem
| From: | Robert Cummings | Date: | Tue, 09 Jun 2009 10:08:21 +0000 |
| Subject: | Re: Strange PHP/Python problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293795@lists.php.net to get a copy of this message | ||
Adrian Price-Whelan wrote:
Hey all- Something strange is happening with a python script I am executing from a php page: I am executing this by doing $output =Your question belongs on a python list. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHPpython blahblah.py arg1 arg2 arg3Say my Python code looks like this: import sys import os thisPID = os.getpid() print thisPID print "1" RADeg = float(sys.argv[1]) decDeg = float(sys.argv[2]) clipSizeDeg = float(sys.argv[3]) print "2" ic.myFunction(RAdeg, decDeg, clipSizeDeg) print "3" os.system(SOME LONG COMMAND) print "4" for i in os.listdir(blah):print "5" os.system("gunzip BLAH")[/code]print "6" $output collects these numbers from the print statements, all the way through #6, but it doesn't execute the rest of the code - the stuff that I actually want it to do...any ideas?