I have a process that runs the 64-bit version of python as well as the 32-bit version. The processes run on a machine with both ArcGIS Server and ArcGIS Desktop installed. The 64-bit processes stop/start map services on the server while the 32-bit process does some database joins, db analyze, deletion, copying, and compressing.
I need this process to be automated and would like them to run under a single scheduled task on Windows Server 2008. I have ran the pythons scripts successfully individually as well as combining the processes into a single python script. The scripts work when run from Python IDLE, the command line, as well as from batch (.bat) files. However, they only way they will run in scheduled tasks is if they are each in a separate scheduled tasks. I tried to created a separate batch file for each process and then call all three batch files from another batch file, didn't work. I tried 1 batch file that calls each version of python individually with each script, didn't work.
I can't call python within the scheduled task with the .py script as the argument because I need to call Python's two versions: C:\Python27\ArcGISx6410.1\python.exe & C:\Python27\ArcGIS10.1\python.exe.
The following batch file executes the first script but will not execute the second or third scripts:
Thanks!
I need this process to be automated and would like them to run under a single scheduled task on Windows Server 2008. I have ran the pythons scripts successfully individually as well as combining the processes into a single python script. The scripts work when run from Python IDLE, the command line, as well as from batch (.bat) files. However, they only way they will run in scheduled tasks is if they are each in a separate scheduled tasks. I tried to created a separate batch file for each process and then call all three batch files from another batch file, didn't work. I tried 1 batch file that calls each version of python individually with each script, didn't work.
I can't call python within the scheduled task with the .py script as the argument because I need to call Python's two versions: C:\Python27\ArcGISx6410.1\python.exe & C:\Python27\ArcGIS10.1\python.exe.
The following batch file executes the first script but will not execute the second or third scripts:
Code:
ECHO ON
C:\PYTHON27\ArcGISx6410.1\python.exe D:\GIS\Automation_Files\PythonScripts\StopServices.py
C:\PYTHON27\ArcGIS10.1\python.exe D:\GIS\Automation_Files\PythonScripts\ParcelJoin.py
C:\PYTHON27\ArcGISx6410.1\python.exe D:\GIS\Automation_Files\PythonScripts\StopServices.py
pause
Thanks!