<?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 [arcpy] shell on linux &amp;amp;amp;quot;X connection&amp;amp;amp;quot; pb in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-shell-on-linux-amp-amp-quot-x-connection-amp/m-p/512657#M17033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to run a shell which executes a simple python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My shell :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;source /usr/local/arcgis/server10.0/servercore/.Server/init_server.sh
source /usr/local/arcgis/server10.0/python26/setenv_python.sh
python script.py
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My python script&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
sourcesPath = "\\home\\arcgis\\script\\"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you seen, my script is very simple, but I've this error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;X connection to localhost:10.0 broken (explicit kill or server shutdown).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To avoid this message I can rue a "windows manager" as xming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But my goal, is to cron this shell every night without xming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you have any idea ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 22:26:05 GMT</pubDate>
    <dc:creator>Marie-GilSeptfonds</dc:creator>
    <dc:date>2021-12-11T22:26:05Z</dc:date>
    <item>
      <title>[arcpy] shell on linux &amp;amp;quot;X connection&amp;amp;quot; pb</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-shell-on-linux-amp-amp-quot-x-connection-amp/m-p/512657#M17033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to run a shell which executes a simple python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My shell :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;source /usr/local/arcgis/server10.0/servercore/.Server/init_server.sh
source /usr/local/arcgis/server10.0/python26/setenv_python.sh
python script.py
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My python script&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
sourcesPath = "\\home\\arcgis\\script\\"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you seen, my script is very simple, but I've this error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;X connection to localhost:10.0 broken (explicit kill or server shutdown).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To avoid this message I can rue a "windows manager" as xming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But my goal, is to cron this shell every night without xming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you have any idea ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-shell-on-linux-amp-amp-quot-x-connection-amp/m-p/512657#M17033</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2021-12-11T22:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: [arcpy] shell on linux "X connection" pb</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-shell-on-linux-amp-amp-quot-x-connection-amp/m-p/512658#M17034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a solution in this post&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/14399-linux-access-ArcPy"&gt;http://forums.arcgis.com/threads/14399-linux-access-ArcPy&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the last three posts we can read that arcpy must be running in an environnement which "have a display configured because ArcPY is a mapping module."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution is in the last post (using Xvfb) : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Xvfb :1 &amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;export DISPLAY=:1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-shell-on-linux-amp-amp-quot-x-connection-amp/m-p/512658#M17034</guid>
      <dc:creator>Marie-GilSeptfonds</dc:creator>
      <dc:date>2011-09-19T13:55:54Z</dc:date>
    </item>
  </channel>
</rss>

