Hello - I am having problems executing a python process as a startup script - the script accesses a series of ArcGIS modelbuilder models & iterates through many processes and consistently fails at around the 50th iteration (engine reboots). I researched and found the below link that suggested calling python with a subprocess as a work around for this behaviour. However, I can't get the script to run using the method in link below....Any ideas?
http://fmepedia.safe.com/articles/Error_Unexpected_Behavior/Shutdown-Python-Script-Causing-FME-Engine-Failure
2013-06-06 10:56:13| 0.2| 0.2|INFORM|Feature Manipulation Engine 2012 SP4 (20120926 - Build 12266 - WIN32)
2013-06-06 10:56:13| 0.2| 0.0|INFORM|FME_HOME is 'C:\\apps\\FMEServer\\Server\\fme\\'
2013-06-06 10:56:13| 0.2| 0.0|INFORM|FME Engine (floating)
2013-06-06 10:56:13| 0.2| 0.0|INFORM|Permanent License.
2013-06-06 10:56:13| 0.2| 0.0|INFORM|Machine host name is: sxmcifme001
2013-06-06 10:56:13| 0.2| 0.0|INFORM|START - ProcessID: 6404, peak process memory usage: 29372 kB, current process memory usage: 29272 kB
2013-06-06 10:56:13| 0.2| 0.0|INFORM|FME Configuration: Command line arguments are `fme' `NRM ETL Testing\\eba_17_7_TRAILS_STAGE_PROCESS\\eba_17_7_TRAILS_STAGE_PROCESS.fmw' `--FME_DATA_REPOSITORY' `//ds.fs.fed.us/efs/FS/Reference/GeoTool/agency/EDW/FME12Repository//Server/Upload/' `--SourceDataset_SDE30_3' `AllTrails' `--FME_SERVER_NAME' `Engine2' `-FME_ENGINE_MEMORY_REDLINE' `0.5' `-FME_SHARED_RESOURCE_DIR' `\\\\ds.fs.fed.us\\efs\\FS\\Reference\\GeoTool\\agency\\EDW\\FME12Repository\\Server\\repository\\NRM ETL Testing\\fmeresources' `-LOG_FILENAME' `//ds.fs.fed.us/efs/FS/Reference/GeoTool/agency/EDW/FME12Repository//Logs/jobsubmitterservice\\FME_312E2A06_1370537773439_6404.log' `--FME_SERVER_ROOT' `//ds.fs.fed.us/efs/FS/Reference/GeoTool/agency/EDW/FME12Repository/' `--DestDataset_GEODATABASE_SDE' `AllTrails_SDO' `--FME_SECURITY_ROLES' `fmeadmin fmeauthor fmeuser' `--FME_MF_NAME' `eba_17_7_TRAILS_STAGE_PROCESS.fmw' `--FME_SECURITY_USER' `ebaiello'
2013-06-06 10:56:13| 0.3| 0.1|INFORM|Python version 2.6 successfully loaded
2013-06-06 10:56:14| 0.5| 0.1|INFORM|FME_BEGIN_PYTHON: evaluating python script from string...
2013-06-06 10:56:14| 0.5| 0.0|WARN |Python Exception <SyntaxError>: invalid syntax (<string>, line 1)
2013-06-06 10:56:14| 0.5| 0.0|ERROR |Error executing string `Import subprocess
subprocess.call(p'C:\\\\Python26\\\\ArcGIS10.0\\\\python.exe','C:\\\\EDW_Tools\\\\Roads_Trails\\\\Python\\\\TrailsSegmentation_12.py'])
'
2013-06-06 10:56:14| 0.5| 0.0|ERROR |FME_BEGIN_PYTHON failed to execute provided script
2013-06-06 10:56:14| 0.5| 0.0|INFORM|FME Session Duration: 0.6 seconds. (CPU: 0.3s user, 0.2s system)
2013-06-06 10:56:14| 0.5| 0.0|INFORM|END - ProcessID: 6404, peak process memory usage: 36824 kB, current process memory usage: 36668 kB