reportFolder = "C:/inetpub/wwwroot/flexviewers/_supportDocs/reports/" pdfPathTemp = reportFolder+"earthquakeReportTemp.pdf" rlfPath = "C:/arcgisserver/gisData/services/eqMap/toolsNscripts/agentReport.rlf" eq = policyList[0] whereClause = "EPICENTER = '"+eq+"'" lyr.definitionQuery = whereClause arcpy.mapping.ExportReport(lyr,rlfPath,pdfPathTemp)
Solved! Go to Solution.
/c is an option of cmd. You need to put cmd in front of it, i.e run the cmd command in the command window, as confusing as that sounds. So in the command window, type:
cmd /c python C:\script.py
Okay, well I'm one step closer. I can get it to run in the CMD window using your example. So why am I having issues with the Task Manager?
:: run my awesome batch process cmd /c C:\Python27\ArcGIS10.1\python.exe myscript.py
Hello, I have seen this post and I have a couple of question myself and was wondering if you could help me please.
I have created 2 scripts.
first one: General_EjecutarReporte_Consola.py is the script that is published a geoprocessing service and call the CMD to execute the second python script that has the EXPORTReport called: General_ReporteCriteriosValoracion.py.
I have published my first script and I have run in in the REST and it seems to work, but it does not creates my report in the destinated file. see picture.
I am using Arcgid 10.2.2.
Thank you very much,
Okay, well I'm one step closer. I can get it to run in the CMD window using your example. So why am I having issues with the Task Manager?