<?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 UNIX Scripting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500524#M883114</link>
    <description>How do I simulate keyboard input into my script? I am writing a script to shut down one of my application programs. The command to shut it down is sc stop. The application will pause and ask for a password to be entered. How do I put the password in the script so that the application won't pause for the password? Please help !!!&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Mar 2001 18:45:33 GMT</pubDate>
    <dc:creator>Elaine Pang</dc:creator>
    <dc:date>2001-03-02T18:45:33Z</dc:date>
    <item>
      <title>UNIX Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500524#M883114</link>
      <description>How do I simulate keyboard input into my script? I am writing a script to shut down one of my application programs. The command to shut it down is sc stop. The application will pause and ask for a password to be entered. How do I put the password in the script so that the application won't pause for the password? Please help !!!&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Mar 2001 18:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500524#M883114</guid>
      <dc:creator>Elaine Pang</dc:creator>
      <dc:date>2001-03-02T18:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500525#M883115</link>
      <description>This may or may not work, depends on how the application was written...&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;/dir/dir/sc stop &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;password&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Replace /dir/dir and password with whatever is appropriate for your needs.</description>
      <pubDate>Fri, 02 Mar 2001 18:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500525#M883115</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-03-02T18:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500526#M883116</link>
      <description>You could try writing a script that does the following:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;echo xxxxx | "sc stop"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above says that echo xxxxx(which represents your password) to the command sc stop.  This should work although it is not advisable to put the password in a shell script as it is a security risk.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Joseph.</description>
      <pubDate>Tue, 06 Mar 2001 00:23:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500526#M883116</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2001-03-06T00:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500527#M883117</link>
      <description>Try a program called "Expect"  It will expect certain things from a script that's interactive. Then do something.  &lt;A href="http://expect.nist.gov/" target="_blank"&gt;http://expect.nist.gov/&lt;/A&gt;&lt;BR /&gt;It's really good for automating interactive applications.</description>
      <pubDate>Tue, 06 Mar 2001 05:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-scripting/m-p/2500527#M883117</guid>
      <dc:creator>Brian Markus</dc:creator>
      <dc:date>2001-03-06T05:07:54Z</dc:date>
    </item>
  </channel>
</rss>

