<?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 Re: Publish Toolbox with simple python script to ArcGIS Server in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/publish-toolbox-with-simple-python-script-to/m-p/381990#M13027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm I've never tried the Publish to Server option before, whenever I publish my geoprocessing scripts I do it through the rest web admin.&amp;nbsp; You just add the toolbox and publish it as a REST (default) or other type of service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 13:59:58 GMT</pubDate>
    <dc:creator>MattMoyles</dc:creator>
    <dc:date>2010-08-20T13:59:58Z</dc:date>
    <item>
      <title>Publish Toolbox with simple python script to ArcGIS Server</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/publish-toolbox-with-simple-python-script-to/m-p/381989#M13026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need to publish a python script to an ArcGIS Server&lt;/SPAN&gt;&lt;STRONG&gt; 9.2 SP 6&lt;/STRONG&gt;&lt;SPAN&gt; !! Yes i know there is already ArcGIS 10 available but in this case i have to use an old version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to test this i have a very simple python script that just contains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import sys, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

gp.AddMessage("... executing script ....")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've added the script to a toolbox without parameters. Running the script now via toolbox works fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next step ist publishing the toolbox to the ArcGIS Server. First time i tried to directly publish it via right clickt =&amp;gt; publish to arcgis server, did not work out (later more information about "does not work"). So i choose the option to publish it via right click on Gis Server =&amp;gt; MyServer =&amp;gt; "Add New Service" =&amp;gt; Geoprocessing Service .... selected the toolbox, choos execution type synchronous. .... published!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i know add this ArcGIS Server Toolbox to my ArcToolbox iam able to run the script on server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens know is that the script never stops running and i dont even get the given "GPMessage". If i cancel the script one ArcSOC.exe process still used 99% of the CPU (single core), the only way to stop it is killing the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already tried to use an UNC path for the toolbox, for the script within the toolbox. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running the toolbox async also blocks the cpu "forever". and for sure i dont get a feedback via gpMessage here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone - Any Idea what is happening here? Or what i should test to solve this Problem. (can't upgrade to a newer version in this case - for sure this would be what i like to do.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/publish-toolbox-with-simple-python-script-to/m-p/381989#M13026</guid>
      <dc:creator>StefanP__Jung</dc:creator>
      <dc:date>2010-08-20T13:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Publish Toolbox with simple python script to ArcGIS Server</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/publish-toolbox-with-simple-python-script-to/m-p/381990#M13027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm I've never tried the Publish to Server option before, whenever I publish my geoprocessing scripts I do it through the rest web admin.&amp;nbsp; You just add the toolbox and publish it as a REST (default) or other type of service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/publish-toolbox-with-simple-python-script-to/m-p/381990#M13027</guid>
      <dc:creator>MattMoyles</dc:creator>
      <dc:date>2010-08-20T13:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Publish Toolbox with simple python script to ArcGIS Server</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/publish-toolbox-with-simple-python-script-to/m-p/381991#M13028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This happens to me too, I have to close ArcMap to stop it from runnning even if it finished succesfully. There must be a way to stop this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is using ArcServer 10 and ArcMap 10 too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 15:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/publish-toolbox-with-simple-python-script-to/m-p/381991#M13028</guid>
      <dc:creator>PeterBaldwin</dc:creator>
      <dc:date>2011-10-31T15:25:24Z</dc:date>
    </item>
  </channel>
</rss>

