<?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: Exec format error using ssh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179714#M459782</link>
    <description>&amp;gt;"Exec format error" and unable to log the system. But using telnet with same user no problem found to login and perform my job.&lt;BR /&gt;&lt;BR /&gt;That's strange.  What does that executable do?&lt;BR /&gt;And you said when you use telnet it immediately executes that program?&lt;BR /&gt;&lt;BR /&gt;Possibly ssh is changing SHLIB_PATH and pointing to the wrong version of some shlib?&lt;BR /&gt;What does this show:&lt;BR /&gt;file /anapdata1/doel/POLICE/delhi/test</description>
    <pubDate>Sat, 06 Jun 2009 08:19:02 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-06-06T08:19:02Z</dc:date>
    <item>
      <title>Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179713#M459781</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I have RP3440 server running HP UNIX version 11i-v1. When i am trying to login as a local ssh user got some error message &lt;BR /&gt;"Last login: Sat Jun  6 13:02:04 2009 from 10.239.254.42&lt;BR /&gt;/anapdata1/doel/POLICE/delhi/test: Exec format error"&lt;BR /&gt;and unable to log the system. But using telnet with same user no problem found to login and perform my job. &lt;BR /&gt;&lt;BR /&gt;Password file entry : &lt;BR /&gt;&lt;BR /&gt;del_cdr:46pR.CFBR7eD.:136:20:,,,:/anapdata1/doel/POLICE/delhi:/anapdata1/doel/POLICE/delhi/test&lt;BR /&gt;&lt;BR /&gt;Wait for response.&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Jun 2009 07:29:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179713#M459781</guid>
      <dc:creator>arupdas</dc:creator>
      <dc:date>2009-06-06T07:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179714#M459782</link>
      <description>&amp;gt;"Exec format error" and unable to log the system. But using telnet with same user no problem found to login and perform my job.&lt;BR /&gt;&lt;BR /&gt;That's strange.  What does that executable do?&lt;BR /&gt;And you said when you use telnet it immediately executes that program?&lt;BR /&gt;&lt;BR /&gt;Possibly ssh is changing SHLIB_PATH and pointing to the wrong version of some shlib?&lt;BR /&gt;What does this show:&lt;BR /&gt;file /anapdata1/doel/POLICE/delhi/test</description>
      <pubDate>Sat, 06 Jun 2009 08:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179714#M459782</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-06T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179715#M459783</link>
      <description>Inside 'test' file there is one .sh file which i attached . &lt;BR /&gt;When we login using ID that script is running and execute.</description>
      <pubDate>Sat, 06 Jun 2009 08:43:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179715#M459783</guid>
      <dc:creator>arupdas</dc:creator>
      <dc:date>2009-06-06T08:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179716#M459784</link>
      <description>Your script should start with:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;If that doesn't fix it, you can add a "-x" to trace the commands.</description>
      <pubDate>Sat, 06 Jun 2009 12:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179716#M459784</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-06T12:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179717#M459785</link>
      <description>We don't start script manually. Using telnet when we login the server, script start automatically because of login shell is metioned "anapdata1/doel/POLICE/delhi/test".&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;And using ssh login we are unable to login and so script is also not running. &lt;BR /&gt;&lt;BR /&gt;Wiating for hands.</description>
      <pubDate>Sun, 07 Jun 2009 04:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179717#M459785</guid>
      <dc:creator>arupdas</dc:creator>
      <dc:date>2009-06-07T04:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179718#M459786</link>
      <description>&amp;gt;We don't start script manually.&lt;BR /&gt;&lt;BR /&gt;That was obvious.  Have you added that #! yet?</description>
      <pubDate>Sun, 07 Jun 2009 05:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179718#M459786</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-07T05:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179719#M459787</link>
      <description>ssh with an command does not start a login shell!!! That means the environment is set only to default values.&lt;BR /&gt;That means that your program is responsible to create the necessary environment.&lt;BR /&gt;Try sourcing /etc/profile and your .profile (including all SAP profiles) before doing anything else!&lt;BR /&gt;&lt;BR /&gt;My 2 cents,&lt;BR /&gt;Armin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jun 2009 07:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179719#M459787</guid>
      <dc:creator>Armin Kunaschik</dc:creator>
      <dc:date>2009-06-08T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179720#M459788</link>
      <description>&amp;gt;Armin: ssh with a command does not start a login shell&lt;BR /&gt;&lt;BR /&gt;Why are you mentioning some true but useless info?&lt;BR /&gt;&lt;BR /&gt;In this case, the user's script IS the login shell.  Which means that neither /etc/profile nor ~/.profile will be executed.  This echoes the last part of your statement.  This is probably not important since it works with telnet.  Though I suppose they could have different $PATH settings.</description>
      <pubDate>Mon, 08 Jun 2009 08:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179720#M459788</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-08T08:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179721#M459789</link>
      <description>Ooops. You're right. My fault. But I guess, it could be useful to check the environment! ssh might change/reset some environment variables for security reason, thus preventing the right environment.&lt;BR /&gt;Another thing to try: put the script name (including path) into /etc/shells.&lt;BR /&gt;&lt;BR /&gt;Another 2 cents,&lt;BR /&gt;Armin&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2009 15:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179721#M459789</guid>
      <dc:creator>Armin Kunaschik</dc:creator>
      <dc:date>2009-06-09T15:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179722#M459790</link>
      <description>And just a warning about scripts named: test&lt;BR /&gt;This is the name of a shell command and you can create very confusing error messages when the shell picks the wrong thing to run. At least call the script: test1</description>
      <pubDate>Tue, 09 Jun 2009 22:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179722#M459790</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-06-09T22:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error using ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179723#M459791</link>
      <description>Thanks to all to find out problem.</description>
      <pubDate>Tue, 30 Jun 2009 10:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-using-ssh/m-p/5179723#M459791</guid>
      <dc:creator>arupdas</dc:creator>
      <dc:date>2009-06-30T10:26:18Z</dc:date>
    </item>
  </channel>
</rss>

