<?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 accessing git command using subprocess with arcpy on linux ArcGIS server in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-git-command-using-subprocess-with-arcpy/m-p/1002446#M5216</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm currently having an issue with accessing git hash using the subprocess module from the python on Linux ArcGIS server.&lt;/P&gt;&lt;P&gt;I'm using ArcGIS 10.8 Linux server version and using the python interpreter on the server at the default location (/home/usr/server/tools/python)&lt;/P&gt;&lt;P&gt;My code snippet is&amp;nbsp;&lt;/P&gt;&lt;P&gt;a = subprocess.Popen(['git rev-parse HEAD'], cwd=os.path.dirname('/home/usr/server/my_project'), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)&lt;BR /&gt;a.communicate()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this command, it returns&amp;nbsp;&lt;/P&gt;&lt;P&gt;('', "Can't recognize 'git' as an internal or external command, or batch script.\r\n")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody had a similar issue before?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 06:48:59 GMT</pubDate>
    <dc:creator>jiyeam</dc:creator>
    <dc:date>2020-11-18T06:48:59Z</dc:date>
    <item>
      <title>accessing git command using subprocess with arcpy on linux ArcGIS server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-git-command-using-subprocess-with-arcpy/m-p/1002446#M5216</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm currently having an issue with accessing git hash using the subprocess module from the python on Linux ArcGIS server.&lt;/P&gt;&lt;P&gt;I'm using ArcGIS 10.8 Linux server version and using the python interpreter on the server at the default location (/home/usr/server/tools/python)&lt;/P&gt;&lt;P&gt;My code snippet is&amp;nbsp;&lt;/P&gt;&lt;P&gt;a = subprocess.Popen(['git rev-parse HEAD'], cwd=os.path.dirname('/home/usr/server/my_project'), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)&lt;BR /&gt;a.communicate()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this command, it returns&amp;nbsp;&lt;/P&gt;&lt;P&gt;('', "Can't recognize 'git' as an internal or external command, or batch script.\r\n")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody had a similar issue before?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 06:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-git-command-using-subprocess-with-arcpy/m-p/1002446#M5216</guid>
      <dc:creator>jiyeam</dc:creator>
      <dc:date>2020-11-18T06:48:59Z</dc:date>
    </item>
  </channel>
</rss>

