anthony i am running into the same issues however i am not running this in a scheduler. i have 4 models that i am trying to get to run ( one at a time) thru python.
basically run script 1
if script 1 successful run script 2
and so on. i have log lines in there to tell me at the end if this was successful. but i keet getting errors
am i missing something?
import arcpy, time, os, sys
Date = time.strftime("%m-%d-%Y", time.localtime())
Time = time.strftime ("%I:%M:%S :p",time.localtime())
LogFile = file(r"F:\\GIS\\Python_Scripts\\Logs\\GLE to BIS PROJECTION AND TRANSFER_" + Date + ".txt", 'w')
output = open(r"F:\\GIS\\Python_Scripts\\Logs\\GLE to BIS PROJECTION AND TRANSFER_" + Date + ".txt", 'w')
arcpy.ImportToolbox("F:\\GIS\\Python_Scripts\\GLE_BIS_Silverlight_Overwrite\\GLE_BIS.tbx")
# Local variables:
output.write("Script Started At: " + str(Date) + " " + str(Time) + "." + "\n" + "Start Delete Process" +"\n")
# Process: Delete Temp Holding Shapefiles
arcpy.DeleteTempHolding_GLE_BIS()
arcpy.ExecuteDeleteTempHolding_GLE_BIS()
try:
# Process: Delete Temp Holding Shapefiles
if arcpy.ExecuteDeleteTempHolding_GLE_BIS():
output.write("Delete of Temporary files SUCCESS","\n")
except:
output.write("Delete of Temporary files FAIL","\n")
output.write("END OF SCRIPT","\n")
# reset date and time from when started
lDate = time.strftime("%m-%d-%Y", time.localtime())
lTime = time.strftime("%I:%M:%S %p",time.localtime())
# write to log and close
output.write(str("GLE to BIS Script Ended at " + str(lDate) + " " + str(lTime) + "." + "\n"))
output.close()
now = time.time()
print "Script Complete"