<?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: Scripting with interactive programs. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425690#M1201</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you really want to supply inputs to interactive programs in a script, you should try the Expect scripting language. It comes with quite a number of sample scripts.&lt;BR /&gt;&lt;BR /&gt;Works well with all interactive programs including minicom.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim.</description>
    <pubDate>Sun, 11 Jun 2000 00:45:31 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2000-06-11T00:45:31Z</dc:date>
    <item>
      <title>Scripting with interactive programs.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425687#M1198</link>
      <description>Does anyone know of a tool that would allow me to script with interactive programs?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Fri, 09 Jun 2000 20:19:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425687#M1198</guid>
      <dc:creator>carl_46</dc:creator>
      <dc:date>2000-06-09T20:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with interactive programs.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425688#M1199</link>
      <description>The double redirect-input could be what you want, this allows you to place the replies that a command expects in the same script.&lt;BR /&gt;For example, we run UniVerse Pick on Unix 10.20 so the following will enter the UniVerse environment and execute UniVerse commands then return to the script&lt;BR /&gt;&lt;BR /&gt;&lt;BEGINNING of="" script="" here=""&gt;&lt;BR /&gt;.&lt;BR /&gt;/opt/uv/bin/uv &amp;lt;&lt;ENDOFCOMMANDS&gt;&lt;/ENDOFCOMMANDS&gt;SELECT VOC WITH @ID LIKE ...NIC...&lt;BR /&gt;DELETE VOC&lt;BR /&gt;ENDOFCOMMANDS&lt;BR /&gt;.&lt;BR /&gt;&lt;REST of="" script="" here=""&gt;&lt;BR /&gt;&lt;BR /&gt;Be lucky.&lt;BR /&gt;The script runs the uv program and passes the following lines to it until it reaches the word ENDOFCOMMANDS. You can use any word you like, providing it is different to the actual commands you want to pass.&lt;/REST&gt;&lt;/BEGINNING&gt;</description>
      <pubDate>Sat, 10 Jun 2000 12:26:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425688#M1199</guid>
      <dc:creator>Dave Cull</dc:creator>
      <dc:date>2000-06-10T12:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with interactive programs.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425689#M1200</link>
      <description>Good info, thanks, but I can't seem to get this to work with a simple telnet script, such as.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;telnet &amp;lt;&amp;lt; job&lt;BR /&gt;open localhost&lt;BR /&gt;username&lt;BR /&gt;password&lt;BR /&gt;job&lt;BR /&gt;&lt;BR /&gt;I know I can do this with a rhost file, I am just experimenting with this.  Thanks.</description>
      <pubDate>Sat, 10 Jun 2000 17:38:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425689#M1200</guid>
      <dc:creator>carl_46</dc:creator>
      <dc:date>2000-06-10T17:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with interactive programs.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425690#M1201</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you really want to supply inputs to interactive programs in a script, you should try the Expect scripting language. It comes with quite a number of sample scripts.&lt;BR /&gt;&lt;BR /&gt;Works well with all interactive programs including minicom.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim.</description>
      <pubDate>Sun, 11 Jun 2000 00:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-with-interactive-programs/m-p/2425690#M1201</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2000-06-11T00:45:31Z</dc:date>
    </item>
  </channel>
</rss>

