<?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: Here Document in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243553#M891318</link>
    <description>And it won't with passwd - passwd won't talk to anything but a tty.&lt;BR /&gt;&lt;BR /&gt;To acheive this your going to need something like expect:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.39/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.39/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
    <pubDate>Thu, 08 Apr 2004 08:13:48 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2004-04-08T08:13:48Z</dc:date>
    <item>
      <title>Here Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243552#M891317</link>
      <description>I have a simple script to change/update the user password using here document. Apparently it don't seems to work. Here is the text of the script&lt;BR /&gt;&lt;BR /&gt;#########################&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;##tst.sh&lt;BR /&gt;&lt;BR /&gt;passwd usrname&amp;lt;&lt;END&gt;&lt;/END&gt;test123&lt;BR /&gt;test123&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;#####################&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated&lt;BR /&gt;&lt;BR /&gt;tmk</description>
      <pubDate>Thu, 08 Apr 2004 08:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243552#M891317</guid>
      <dc:creator>Tariq Khan_1</dc:creator>
      <dc:date>2004-04-08T08:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Here Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243553#M891318</link>
      <description>And it won't with passwd - passwd won't talk to anything but a tty.&lt;BR /&gt;&lt;BR /&gt;To acheive this your going to need something like expect:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.39/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.39/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Apr 2004 08:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243553#M891318</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2004-04-08T08:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Here Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243554#M891319</link>
      <description>Hi,&lt;BR /&gt;Like mentioned in the previous post. It won't work.&lt;BR /&gt;&lt;BR /&gt;What you can do is overwrite the encrypted string with a new encrypted string in the /etc/passwd file or in the /tcb/..... password files if it's a trusted system.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Peter Geluk&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Apr 2004 16:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243554#M891319</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-04-08T16:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Here Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243555#M891320</link>
      <description>This is horribly unsecure!   Don't do it!  The others mentioned how to use expect to script this, but please reconsider.  This just isn't good systems administration practice. Any user who is incapable of typing "passwd" is also going to be incapable of running your expect script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 08 Apr 2004 18:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/here-document/m-p/3243555#M891320</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2004-04-08T18:59:26Z</dc:date>
    </item>
  </channel>
</rss>

