<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to fire python with arguments as scheduled task in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40206#M3216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get a &lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2016/12/14/migrating-data-from-the-survey-feature-service-to-an-enterprise-geodatabase" target="_blank"&gt;PY Script&lt;/A&gt; to run as a scheduled task with no success. &lt;STRONG&gt;&lt;EM&gt;It's very important to point out that I can get this to run by executing from cmd prompt as myself, the domain service account that will run the task, and other python scripts (without arguments) run fine in task scheduler&amp;nbsp; when I'm logged off, so various permissions issues are not the problem here.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've tried Run with Highest Privileges on and off. Never works. I get no error messages other than either the task completes instantly (should take about 15 minutes to run), or completes in 30 seconds. As mentioned above, the script works in other execution scenarios and under various user accounts, so I don't see a need to write a bunch of logging that's going to log nothing, as, far as I can tell, the first line of the python isn't getting executed (there's nothing to log if nothing is run). The only difference here is the addition of arguments at the end of the call to the python script, which is somehow throwing a monkey wrench into already finicky and pouty Task Scheduler, not known for its error reporting and logging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"C:\PRODUCTION\SOME_FOLDER\syncSurvey.py SOME.sde SOME_NAME &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices1.arcgis.com%2FSOME_ORG%2Farcgis%2Frest%2Fservices%2Fservice_SOME_ITEM_ID%2FFeatureServer" target="_blank"&gt;https://services1.arcgis.com/SOME_ORG/arcgis/rest/services/service_SOME_ITEM_ID/FeatureServer&lt;/A&gt;&lt;SPAN&gt; US/Eastern &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt; SOME_ACCOUNT SOME_PW"&lt;/SPAN&gt;&lt;/SPAN&gt;


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"C:\PRODUCTION\SOME_FOLDER\syncSurvey.py"&lt;/SPAN&gt; SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"SOME.sde SOME_NAME &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices1.arcgis.com%2FSOME_ORG%2Farcgis%2Frest%2Fservices%2Fservice_SOME_ITEM_ID%2FFeatureServer" target="_blank"&gt;https://services1.arcgis.com/SOME_ORG/arcgis/rest/services/service_SOME_ITEM_ID/FeatureServer&lt;/A&gt;&lt;SPAN&gt; US/Eastern &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt; SOME_ACCOUNT SOME_PW"&lt;/SPAN&gt;&lt;/SPAN&gt;


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"C:\Python27\ArcGIS10.5\python.exe"&lt;/SPAN&gt;
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW


The following two just result &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; the task firing&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; but logging nothing&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; never stopping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Windows\System32\cmd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\SURVEY&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;BAT

where SURVEY&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;BAT &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Windows\System32\cmd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"C:\PRODUCTION\SOME_FOLDER\SURVEY.BAT"&lt;/SPAN&gt;

where SURVEY&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;BAT &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above, if I double click on the BAT file, it fires up a CMD prompt and runs fine, same when I do that same under the domain service account assigned to run the task (right click on bat, run as different user), once again confirming permissions aren't the issue here. How can I tell it's not working you ask? Nothing getting downloaded to&amp;nbsp;C:\Users\[user]\AppData\Local\Temp, which would happen if a replica was created, and no new records are added to GDB, the opposite of what happens when I call it from cmd prompt.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:33:56 GMT</pubDate>
    <dc:creator>ThomasColson</dc:creator>
    <dc:date>2021-12-10T21:33:56Z</dc:date>
    <item>
      <title>How to fire python with arguments as scheduled task</title>
      <link>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40206#M3216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get a &lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2016/12/14/migrating-data-from-the-survey-feature-service-to-an-enterprise-geodatabase" target="_blank"&gt;PY Script&lt;/A&gt; to run as a scheduled task with no success. &lt;STRONG&gt;&lt;EM&gt;It's very important to point out that I can get this to run by executing from cmd prompt as myself, the domain service account that will run the task, and other python scripts (without arguments) run fine in task scheduler&amp;nbsp; when I'm logged off, so various permissions issues are not the problem here.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've tried Run with Highest Privileges on and off. Never works. I get no error messages other than either the task completes instantly (should take about 15 minutes to run), or completes in 30 seconds. As mentioned above, the script works in other execution scenarios and under various user accounts, so I don't see a need to write a bunch of logging that's going to log nothing, as, far as I can tell, the first line of the python isn't getting executed (there's nothing to log if nothing is run). The only difference here is the addition of arguments at the end of the call to the python script, which is somehow throwing a monkey wrench into already finicky and pouty Task Scheduler, not known for its error reporting and logging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"C:\PRODUCTION\SOME_FOLDER\syncSurvey.py SOME.sde SOME_NAME &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices1.arcgis.com%2FSOME_ORG%2Farcgis%2Frest%2Fservices%2Fservice_SOME_ITEM_ID%2FFeatureServer" target="_blank"&gt;https://services1.arcgis.com/SOME_ORG/arcgis/rest/services/service_SOME_ITEM_ID/FeatureServer&lt;/A&gt;&lt;SPAN&gt; US/Eastern &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt; SOME_ACCOUNT SOME_PW"&lt;/SPAN&gt;&lt;/SPAN&gt;


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"C:\PRODUCTION\SOME_FOLDER\syncSurvey.py"&lt;/SPAN&gt; SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"SOME.sde SOME_NAME &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices1.arcgis.com%2FSOME_ORG%2Farcgis%2Frest%2Fservices%2Fservice_SOME_ITEM_ID%2FFeatureServer" target="_blank"&gt;https://services1.arcgis.com/SOME_ORG/arcgis/rest/services/service_SOME_ITEM_ID/FeatureServer&lt;/A&gt;&lt;SPAN&gt; US/Eastern &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt; SOME_ACCOUNT SOME_PW"&lt;/SPAN&gt;&lt;/SPAN&gt;


Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"C:\Python27\ArcGIS10.5\python.exe"&lt;/SPAN&gt;
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW


The following two just result &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; the task firing&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; but logging nothing&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; never stopping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Windows\System32\cmd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\SURVEY&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;BAT

where SURVEY&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;BAT &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍Program Script&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Windows\System32\cmd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe
Add Arguments &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;optional&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"C:\PRODUCTION\SOME_FOLDER\SURVEY.BAT"&lt;/SPAN&gt;

where SURVEY&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;BAT &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Python27\ArcGIS10&lt;SPAN class="number token"&gt;.5&lt;/SPAN&gt;\python&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exe C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\PRODUCTION\SOME_FOLDER\syncSurvey&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py SOME&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde SOME_NAME https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;services1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;SOME_ORG&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;arcgis&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;rest&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;services&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;service_SOME_ITEM_ID&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;FeatureServer US&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;Eastern https&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;//&lt;/SPAN&gt;www&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com SOME_ACCOUNT SOME_PW

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above, if I double click on the BAT file, it fires up a CMD prompt and runs fine, same when I do that same under the domain service account assigned to run the task (right click on bat, run as different user), once again confirming permissions aren't the issue here. How can I tell it's not working you ask? Nothing getting downloaded to&amp;nbsp;C:\Users\[user]\AppData\Local\Temp, which would happen if a replica was created, and no new records are added to GDB, the opposite of what happens when I call it from cmd prompt.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40206#M3216</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2021-12-10T21:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fire python with arguments as scheduled task</title>
      <link>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40207#M3217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This what ours looks like in Task Scheduler and it works without issue.&amp;nbsp;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400914_TaskScheduler.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 13:56:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40207#M3217</guid>
      <dc:creator>KevinDunlop</dc:creator>
      <dc:date>2018-04-09T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to fire python with arguments as scheduled task</title>
      <link>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40208#M3218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try double quotes around each of your parameters.&amp;nbsp; I found that helps when URLs or file paths are passed as arguments through task manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:44:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40208#M3218</guid>
      <dc:creator>LeonS</dc:creator>
      <dc:date>2018-04-09T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to fire python with arguments as scheduled task</title>
      <link>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40209#M3219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thanks. Results are promising, I'll update after a few iterations of the schedule...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-fire-python-with-arguments-as-scheduled/m-p/40209#M3219</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2018-04-09T16:05:05Z</dc:date>
    </item>
  </channel>
</rss>

