<?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: expect tool in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-tool/m-p/3073803#M719334</link>
    <description>&lt;BR /&gt;First set &lt;BR /&gt;&lt;BR /&gt;log_user 1&lt;BR /&gt;&lt;BR /&gt;at the beginning of your script. This will give you enough output to debug your script.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer</description>
    <pubDate>Thu, 18 Sep 2003 05:06:40 GMT</pubDate>
    <dc:creator>Rainer von Bongartz</dc:creator>
    <dc:date>2003-09-18T05:06:40Z</dc:date>
    <item>
      <title>expect tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-tool/m-p/3073802#M719333</link>
      <description>I am a beginner to expect tool , I used the expect tool script as a subshell of a KSH script. I had to do the folloeing things using that expect script . 1. login as a super user &lt;BR /&gt;2. uninstall and install a package &lt;BR /&gt;3. come out  of the SU mode by giving exit .&lt;BR /&gt;4.Then to interact with the KSH .(main shell)&lt;BR /&gt;&lt;BR /&gt;expect "#"&lt;BR /&gt;send "pkgadd -d \r"&lt;BR /&gt;expect "y,n,?"&lt;BR /&gt;send "y\r"&lt;BR /&gt;expect "successful"&lt;BR /&gt;send "exit\r"&lt;BR /&gt;&lt;BR /&gt;The last command send "exit" was not executed .&lt;BR /&gt;&lt;BR /&gt;Can any one help me out how to proceed and why this command was not executed .&lt;BR /&gt;&lt;BR /&gt;If I have to comne out of the script and if the script should interact normally with the main shell wht command should i give inorder that the expect (subshell susccessfully interacts with KSH main shell) &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Sep 2003 04:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-tool/m-p/3073802#M719333</guid>
      <dc:creator>manikandan_3</dc:creator>
      <dc:date>2003-09-18T04:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: expect tool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-tool/m-p/3073803#M719334</link>
      <description>&lt;BR /&gt;First set &lt;BR /&gt;&lt;BR /&gt;log_user 1&lt;BR /&gt;&lt;BR /&gt;at the beginning of your script. This will give you enough output to debug your script.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer</description>
      <pubDate>Thu, 18 Sep 2003 05:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-tool/m-p/3073803#M719334</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2003-09-18T05:06:40Z</dc:date>
    </item>
  </channel>
</rss>

