<?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: Running python from ssh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213316#M685909</link>
    <description>Setting the expected environment on a remote system is always a problem that should be addressed. $PATH on your local machine is meaningless on the remote machine, regardless of whether you are using telnet, ssh, rexec, ftp, etc. Now you can customize sshd on the remote machine, but are there other systems? I tend to write code that is self-contained and that means PATH is part of the included code. Similarly, a self-contained script will run without any assumptions about the user's environment, which is actually a security enhancement and makes the code ready for at, batch and/or cron.</description>
    <pubDate>Tue, 10 Jun 2008 01:38:26 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2008-06-10T01:38:26Z</dc:date>
    <item>
      <title>Running python from ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213313#M685906</link>
      <description>There is a difference between python 2.5.1 and python 2.5.2 in hp-ux 11.23. Python 2.5.1 is installed in /usr/bin while python 2.5.2 is installed in /usr/local/bin. &lt;BR /&gt;&lt;BR /&gt;The issue is that when running 2.5.1 from python, I don't need to put a full path before python but if I run 2.5.2, I had to put the full path /usr/local/bin for python, although I have /usr/local/bin in $PATH. &lt;BR /&gt;&lt;BR /&gt;How does ssh treat the PATH for running a remote command?</description>
      <pubDate>Mon, 09 Jun 2008 18:08:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213313#M685906</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2008-06-09T18:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running python from ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213314#M685907</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you type env or echo $PATH, you can see the value of PATH variable in your system. the order of phyton's binary in PATH shows which phyton binary to run. if you want 2.5.2 version to be run it's path must be after than the older.&lt;BR /&gt;&lt;BR /&gt;Kenan.</description>
      <pubDate>Mon, 09 Jun 2008 18:33:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213314#M685907</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-06-09T18:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running python from ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213315#M685908</link>
      <description>If you happen to look at the top section of the file&lt;BR /&gt;&lt;BR /&gt;/opt/ssh/etc/sshd_config &lt;BR /&gt;&lt;BR /&gt;you will see something like &lt;BR /&gt;&lt;BR /&gt;# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin&lt;BR /&gt;&lt;BR /&gt;this should tell you what ssh takes as its default path on the server where this sshd is running. Provided that I have not done this myself, but it should be possible to add /usr/local/bin to the path in the source file and compile it for your own use. &lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Mon, 09 Jun 2008 18:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213315#M685908</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2008-06-09T18:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Running python from ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213316#M685909</link>
      <description>Setting the expected environment on a remote system is always a problem that should be addressed. $PATH on your local machine is meaningless on the remote machine, regardless of whether you are using telnet, ssh, rexec, ftp, etc. Now you can customize sshd on the remote machine, but are there other systems? I tend to write code that is self-contained and that means PATH is part of the included code. Similarly, a self-contained script will run without any assumptions about the user's environment, which is actually a security enhancement and makes the code ready for at, batch and/or cron.</description>
      <pubDate>Tue, 10 Jun 2008 01:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213316#M685909</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-06-10T01:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running python from ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213317#M685910</link>
      <description>&amp;gt;How does ssh treat the PATH for running a remote command?&lt;BR /&gt;&lt;BR /&gt;Any reason you just don't use the absolute paths for all commands other than /usr/bin?&lt;BR /&gt;And if using a script, do what Bill says?&lt;BR /&gt;&lt;BR /&gt;That's what you need to do for remsh, except it  does have /usr/local/bin:&lt;BR /&gt;/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/contrib/bin:/usr/local/bin</description>
      <pubDate>Tue, 10 Jun 2008 05:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213317#M685910</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-10T05:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running python from ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213318#M685911</link>
      <description>I will suggest user uses full path name in his scripts.</description>
      <pubDate>Wed, 11 Jun 2008 15:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-python-from-ssh/m-p/4213318#M685911</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2008-06-11T15:00:47Z</dc:date>
    </item>
  </channel>
</rss>

