<?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 Auto Login via Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537725#M368918</link>
    <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I am new to the forum and to scripting so please forgive my ignorance.&lt;BR /&gt;&lt;BR /&gt;I need to create a simple script that will execute the login command to log in a phantom user. So far I have 'exec login "username"', which works just fine, but nothing else I try will pass the password to the password prompt.&lt;BR /&gt;&lt;BR /&gt;What command can I use from withing the script to pass the password to the password prompt?&lt;BR /&gt;&lt;BR /&gt;Thanks ahead of time,&lt;BR /&gt;&lt;BR /&gt;John</description>
    <pubDate>Sat, 21 Nov 2009 01:18:05 GMT</pubDate>
    <dc:creator>John Porter_5</dc:creator>
    <dc:date>2009-11-21T01:18:05Z</dc:date>
    <item>
      <title>Auto Login via Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537725#M368918</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I am new to the forum and to scripting so please forgive my ignorance.&lt;BR /&gt;&lt;BR /&gt;I need to create a simple script that will execute the login command to log in a phantom user. So far I have 'exec login "username"', which works just fine, but nothing else I try will pass the password to the password prompt.&lt;BR /&gt;&lt;BR /&gt;What command can I use from withing the script to pass the password to the password prompt?&lt;BR /&gt;&lt;BR /&gt;Thanks ahead of time,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Sat, 21 Nov 2009 01:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537725#M368918</guid>
      <dc:creator>John Porter_5</dc:creator>
      <dc:date>2009-11-21T01:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Login via Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537726#M368919</link>
      <description>You didn't mention whether this login was using telnet, rlogin or ssh. For telnet and rlogin, the usual answer is to use Expect, a language that can automate interactive tasks such as login. However, Expect needs to be downloaded along with dependencies and installed. Then there's the 600 page manual...&lt;BR /&gt; &lt;BR /&gt;The best choice is to use ssh and public keys. The scripting is quite simple with ssh.</description>
      <pubDate>Sat, 21 Nov 2009 02:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537726#M368919</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-11-21T02:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Login via Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537727#M368920</link>
      <description>Once you execute exec login "username" you are gone from your script and can only be interactive with the process.&lt;BR /&gt;&lt;BR /&gt;As Bill mentioned, if you use expect, you must create another process so both can exist.</description>
      <pubDate>Sat, 21 Nov 2009 17:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537727#M368920</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-21T17:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Login via Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537728#M368921</link>
      <description>you may also need to determine, from the person giving you this request, what they hope to attain by having this automated login.  &lt;BR /&gt;&lt;BR /&gt;It could very well be that just having the login won't solve what what they want to fix. I don't believe that the requestor gave you sufficient information, as in "what's supposed to happen once &lt;PAHNTOM user=""&gt; is logged in".&lt;/PAHNTOM&gt;</description>
      <pubDate>Sat, 21 Nov 2009 18:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-login-via-script/m-p/4537728#M368921</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-11-21T18:38:27Z</dc:date>
    </item>
  </channel>
</rss>

