Hey -
Taken from the PHP manual:
Note: The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running.
Another strange thing - say my python code looks like this:
import sys
import os
thisPID = os.getpid()
print thisPID
RADeg = float(sys.argv[1])
decDeg = float(sys.argv[2])
clipSizeDeg = float(sys.argv[3])
ic.myFunction(RAdeg, decDeg, clipSizeDeg)
os.system(SOME LONG COMMAND)
for i in os.listdir(blah):
os.system("gunzip BLAH")
If I throw random print statements in there, say 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 i
os.system("gunzip BLAH")
It prints all of these numbers from the print statements, but doesn't execute the rest of the code - the stuff that I actually want it to do...any ideas?