<?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 run the program with batch mode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472220#M211997</link>
    <description>&lt;BR /&gt;I have installed a program (eg. programA ), if the user run the program , it will ask the user to answer some questions ( assume all the answers are "yes" ), for simplier , is it possible to answer all the questions automatically by a batch mode ? so that the user no need to input many many times of "yes"  thx in advance.&lt;BR /&gt;eg. &lt;BR /&gt;#run programA &amp;lt; answer.txt , where answer.txt contain the word "yes" .</description>
    <pubDate>Thu, 27 Jan 2005 03:57:22 GMT</pubDate>
    <dc:creator>peterchu</dc:creator>
    <dc:date>2005-01-27T03:57:22Z</dc:date>
    <item>
      <title>run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472220#M211997</link>
      <description>&lt;BR /&gt;I have installed a program (eg. programA ), if the user run the program , it will ask the user to answer some questions ( assume all the answers are "yes" ), for simplier , is it possible to answer all the questions automatically by a batch mode ? so that the user no need to input many many times of "yes"  thx in advance.&lt;BR /&gt;eg. &lt;BR /&gt;#run programA &amp;lt; answer.txt , where answer.txt contain the word "yes" .</description>
      <pubDate>Thu, 27 Jan 2005 03:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472220#M211997</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-01-27T03:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472221#M211998</link>
      <description>Hi there&lt;BR /&gt;&lt;BR /&gt;If you run the program from a script, you should be able to do something like this:&lt;BR /&gt;&lt;BR /&gt;#----- start of script -----&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;/myprogram &amp;lt;</description>
      <pubDate>Thu, 27 Jan 2005 04:05:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472221#M211998</guid>
      <dc:creator>Keith Bryson</dc:creator>
      <dc:date>2005-01-27T04:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472222#M211999</link>
      <description>Hi,&lt;BR /&gt;but be careful if the program you are calling is rm.&lt;BR /&gt;I just tried:&lt;BR /&gt;touch a.txt&lt;BR /&gt;chmod 444 a.txt&lt;BR /&gt;ll a.txt&lt;BR /&gt;rm a.txt &amp;lt;&amp;lt; !&lt;BR /&gt;n&lt;BR /&gt;!&lt;BR /&gt;ll a.txt&lt;BR /&gt;AND THE FILE HAD BEEN REMOVED !&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2005 04:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472222#M211999</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-01-27T04:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472223#M212000</link>
      <description>Peter (Gordon) - that's probably because rm wouldn't have prompted you anyway?  rm -i would have (you are the owner of the file).&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Thu, 27 Jan 2005 05:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472223#M212000</guid>
      <dc:creator>Keith Bryson</dc:creator>
      <dc:date>2005-01-27T05:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472224#M212001</link>
      <description>Keith,&lt;BR /&gt;I tried the same rm from the command line and it responded with:&lt;BR /&gt;a.txt: 444  mode ? (y/n)&lt;BR /&gt;&lt;BR /&gt;My note was purely a by-the-way, your solution is absolutely correct ;-)&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2005 05:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472224#M212001</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-01-27T05:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472225#M212002</link>
      <description>Hi Peter(s)!&lt;BR /&gt;&lt;BR /&gt;No worries.  My rm doesn't behave like that by default, maybe we are using different flavours of Unix (I know Linux prompts for everything!).&lt;BR /&gt;&lt;BR /&gt;Anyway, peter(chu) hope this has sorted your problem.&lt;BR /&gt;&lt;BR /&gt;All the best - Keith</description>
      <pubDate>Thu, 27 Jan 2005 05:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472225#M212002</guid>
      <dc:creator>Keith Bryson</dc:creator>
      <dc:date>2005-01-27T05:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472226#M212003</link>
      <description>try 'expect' scripting.</description>
      <pubDate>Sun, 30 Jan 2005 22:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472226#M212003</guid>
      <dc:creator>Matthew_50</dc:creator>
      <dc:date>2005-01-30T22:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: run the program with batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472227#M212004</link>
      <description>Hi Peterchu,&lt;BR /&gt;&lt;BR /&gt;If all the user inputs are going to be "yes", then why should the script ask a question, in the first place?&lt;BR /&gt;&lt;BR /&gt;Your script can be made to run with all the "yes" conditions as the assumed answer.&lt;BR /&gt;&lt;BR /&gt;WIth regards,&lt;BR /&gt;Mohan.</description>
      <pubDate>Mon, 31 Jan 2005 05:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-the-program-with-batch-mode/m-p/3472227#M212004</guid>
      <dc:creator>Mohanasundaram_1</dc:creator>
      <dc:date>2005-01-31T05:11:42Z</dc:date>
    </item>
  </channel>
</rss>

