<?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 issue where it wants a tty in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845109#M393909</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I actually don't think this is a problem.  Obviously in the script that gets called there is a command in there to run a "tty" or something like that.  A tty command will give an error "not a tty" if run in the way you are describing, but it will not halt the script.  The only problem I can see is if it tries to capture the output of the tty command to an environment variable and then examine this environment variable.  This is because the environment variable will now say something like "not a tty" instead of something like "/dev/pts/34".  If the script does this, then it needs to be modified to handle the fact that it isn't a tty.  But if it doesn't do this, then I don't think it's going to cause a problem to the correct execution of the script.  A bit game, I know.&lt;BR /&gt;&lt;BR /&gt;For example, many .profiles use various tty commands.  if yours does, then run the following and see what happens:&lt;BR /&gt;echo "" | . ./.profile&lt;BR /&gt;you will see that you get an error saying:&lt;BR /&gt;stty: : Not a typewriter &lt;BR /&gt;     or&lt;BR /&gt;not a tty&lt;BR /&gt;but the .profile script still finishes okay.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;- Andy Gray</description>
    <pubDate>Thu, 07 Mar 2002 04:57:00 GMT</pubDate>
    <dc:creator>support_5</dc:creator>
    <dc:date>2002-03-07T04:57:00Z</dc:date>
    <item>
      <title>Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845102#M393902</link>
      <description>I have a third party application for imaging that comes with its own scripts/programs. Their scripts were written to be used interactively, but usually I can get around that by using a here document.  "&amp;lt;&lt;ENDIT&gt;&lt;/ENDIT&gt;I have one though that this does not work for, it is insisting to be tied to a tty.&lt;BR /&gt;Example:&lt;BR /&gt;MY_tool  &amp;lt;&lt;ENDTHIS&gt;&lt;/ENDTHIS&gt;logoff name=myname&lt;BR /&gt;ENDTHIS&lt;BR /&gt;&lt;BR /&gt;I get the error, "Not a tty."  &lt;BR /&gt;I keep thinking there may be another shell or perl method to trick the "MY_tool" program into thinking I'm really on a tty.  Any ideas?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Mar 2002 16:47:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845102#M393902</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-03-06T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845103#M393903</link>
      <description>search for typewriter in the forums search!:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcfb23fa720f3d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcfb23fa720f3d5118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x27ed5f260cafd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x27ed5f260cafd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2697e7613948d5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2697e7613948d5118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x73e66c96588ad4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x73e66c96588ad4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Wed, 06 Mar 2002 17:47:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845103#M393903</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-03-06T17:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845104#M393904</link>
      <description>Does directing output to /dev/null help?</description>
      <pubDate>Wed, 06 Mar 2002 17:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845104#M393904</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-03-06T17:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845105#M393905</link>
      <description>Hello,&lt;BR /&gt;Could it be that a .cshrc or .kshrc file executes a set command or similar.&lt;BR /&gt;&lt;BR /&gt;You need an "if" clause in this script to avoid execution when run from cron.&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 06 Mar 2002 18:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845105#M393905</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-03-06T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845106#M393906</link>
      <description>There is the prominent Tcl application Expect, written by Don Libes, which was particularily designed to automate processes that are bound to a tty, and otherwise can only be run interactively.&lt;BR /&gt;&lt;BR /&gt;Myself not being a friend of Tcl, I would rather go for the Perl port of Expect.&lt;BR /&gt;&lt;BR /&gt;You can get it (as all Perl goodies) from CPAN.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://cpan.valueclick.com/modules/by-module/Expect/" target="_blank"&gt;http://cpan.valueclick.com/modules/by-module/Expect/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In the readme above you will also find the URL of the Tcl original.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Ralph</description>
      <pubDate>Wed, 06 Mar 2002 18:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845106#M393906</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-03-06T18:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845107#M393907</link>
      <description>Bernie,&lt;BR /&gt;&lt;BR /&gt;As stated earlier, you need validation routines like an if statement:&lt;BR /&gt;&lt;BR /&gt;if [ "`tty 2&amp;gt;&amp;amp;1`" = "not a tty" ]; then&lt;BR /&gt; print "This is run from cron or ssh or whatever"&lt;BR /&gt;else&lt;BR /&gt; print "You are running from a tty"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;HOpe this helps !&lt;BR /&gt;&lt;BR /&gt;-Shabu</description>
      <pubDate>Wed, 06 Mar 2002 18:43:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845107#M393907</guid>
      <dc:creator>SHABU KHAN</dc:creator>
      <dc:date>2002-03-06T18:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845108#M393908</link>
      <description>I didn't do a very good job of explaining this.  I'm not running this from cron, ssh, etc, I'm running it straight from the ksh shell and still get the "No tty." message. It also doesn't matter if I use the csh or POSIX sh shells. It is not an issue with /etc/profile, .profile, etc.  Think of it like this, I want to run an interact command non-interactively, one that normally needs a tty.  Basically, from the same shell it works if I interact with it, but does not, if I try to send the commands strings right to it from the same shell.   Sending output to /dev/null does not help, tried various forms of that already.  Using expect may work, I have not tried that yet.  Don't really want to install it on this system, but I may give it a try.</description>
      <pubDate>Wed, 06 Mar 2002 20:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845108#M393908</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-03-06T20:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845109#M393909</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I actually don't think this is a problem.  Obviously in the script that gets called there is a command in there to run a "tty" or something like that.  A tty command will give an error "not a tty" if run in the way you are describing, but it will not halt the script.  The only problem I can see is if it tries to capture the output of the tty command to an environment variable and then examine this environment variable.  This is because the environment variable will now say something like "not a tty" instead of something like "/dev/pts/34".  If the script does this, then it needs to be modified to handle the fact that it isn't a tty.  But if it doesn't do this, then I don't think it's going to cause a problem to the correct execution of the script.  A bit game, I know.&lt;BR /&gt;&lt;BR /&gt;For example, many .profiles use various tty commands.  if yours does, then run the following and see what happens:&lt;BR /&gt;echo "" | . ./.profile&lt;BR /&gt;you will see that you get an error saying:&lt;BR /&gt;stty: : Not a typewriter &lt;BR /&gt;     or&lt;BR /&gt;not a tty&lt;BR /&gt;but the .profile script still finishes okay.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;- Andy Gray</description>
      <pubDate>Thu, 07 Mar 2002 04:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845109#M393909</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2002-03-07T04:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845110#M393910</link>
      <description>Sorry, it is a problem as it does halt the script.  It is a security tool and it is apparently checking the tty before allowing it to run.  The vendor told me there was no way to get around it, but I was hoping maybe I could trick it into thinking I was really running it interactively.  Again, expect may be may best bet.  Thanks anyway.</description>
      <pubDate>Thu, 07 Mar 2002 14:54:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845110#M393910</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-03-07T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845111#M393911</link>
      <description>have you tried directing output to /dev/tty? or if that did not work, actually determining to which tty the parent process is attached and directing the output there?&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Thu, 07 Mar 2002 15:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845111#M393911</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-03-07T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845112#M393912</link>
      <description>Would it be a bad thing if you send it to /dev/console ?</description>
      <pubDate>Thu, 07 Mar 2002 16:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845112#M393912</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-03-07T16:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845113#M393913</link>
      <description>Thanks Mark and Ron.  I've tried every method of directing output I can think of including those you suggest, but it doesn't help.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;My_tool &amp;lt;&lt;ENDIT&gt;/dev/console 2&amp;gt;&amp;amp;1&lt;BR /&gt;logoff user=myuser&lt;BR /&gt;ENDIT&lt;BR /&gt;&lt;BR /&gt;Still get the no tty error wherever I direct the output.&lt;BR /&gt;Seems to me I need to trick the input somehow so it thinks I'm on a tty or /dev/console, etc, but I'm not sure if that's possible.&lt;/ENDIT&gt;</description>
      <pubDate>Thu, 07 Mar 2002 17:23:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845113#M393913</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-03-07T17:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845114#M393914</link>
      <description>have you tried it like this:&lt;BR /&gt;&lt;BR /&gt;My_tool &amp;lt;&lt;ENDIT&gt;&lt;/ENDIT&gt;TERM=vt100 # or whatever is appropriate&lt;BR /&gt;logoff user=myuser &amp;gt;/dev/tty 2&amp;gt;&amp;amp;1 &lt;BR /&gt;ENDIT &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Thu, 07 Mar 2002 17:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845114#M393914</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-03-07T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845115#M393915</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Lateral thinking&lt;BR /&gt;&lt;BR /&gt;Run a cronjob on another server to telnet to the server with the script - login and fire up the script and when finished leave.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 07 Mar 2002 18:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845115#M393915</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-03-07T18:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845116#M393916</link>
      <description>Thanks Mark.  Think of MY_tool as a program with its own language. Once you execute it, you can no longer use shells commands inside it, so the syntax you propose would not work.&lt;BR /&gt;&lt;BR /&gt;Paula, thanks. Your idea was was my final option, which should work.  In fact, I could even use the cron on the server itself to use expect and then telnet back to itself.  I don't really like this idea because I'd have to put the password in the script and its very unelegant.  But it should work and if I really need to automate this, its probably my only choice left. When I get the time to install TCL/TK/expect I'll give this a try.</description>
      <pubDate>Thu, 07 Mar 2002 20:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845116#M393916</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-03-07T20:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845117#M393917</link>
      <description>Bernie, tell us again what type of program MY_tool is. Is it a unix shell script? Or is it a compiled binary? If it's a binary, this won't work.&lt;BR /&gt;&lt;BR /&gt;If it's a shell script, it may be possible to circumvent the tty restriction without actually providing a tty and without modifying the script. Examine the script and look for the use of the commands tty or pty.&lt;BR /&gt;&lt;BR /&gt;If it's a POSIX shell script, then it may check like this:&lt;BR /&gt;&lt;BR /&gt;tty || exit&lt;BR /&gt;&lt;BR /&gt;if tty -s&lt;BR /&gt;then&lt;BR /&gt;continue()&lt;BR /&gt;else&lt;BR /&gt;echo "Not a tty"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if ! tty -s&lt;BR /&gt;then&lt;BR /&gt;echo "Not a tty"&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ -t 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "You are out of luck here"&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;If it is using tty or pty, alias them to true or false (whichever is appropriate) before sourcing the script:&lt;BR /&gt;&lt;BR /&gt;alias tty=true&lt;BR /&gt;. script &amp;lt;</description>
      <pubDate>Thu, 07 Mar 2002 22:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845117#M393917</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-03-07T22:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845118#M393918</link>
      <description>Sorry Jordan, it's a binary from a 3rd party vendor.  This would be a piece of cake if My_tool was a shell script.  Your information is good (as is everyone else's above) if you're dealing with scripts or cleaning up /etc/profile or .profile.</description>
      <pubDate>Thu, 07 Mar 2002 22:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845118#M393918</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-03-07T22:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845119#M393919</link>
      <description>have you contacted the vendor to see if there are specific environment variables or command line options you can set?&lt;BR /&gt;&lt;BR /&gt;just a thought,&lt;BR /&gt;mark&lt;BR /&gt;&lt;BR /&gt;btw, which vendor?</description>
      <pubDate>Fri, 08 Mar 2002 16:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845119#M393919</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-03-08T16:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845120#M393920</link>
      <description>Thanks Mark.  I mentioned earlier that the vendor- FileNet, says there is no way to run the script non-interactively, it wasn't designed for that.  And they have no options to get around it either.  Thus I opened this post to see if I could use a UNIX shell trick instead.</description>
      <pubDate>Fri, 08 Mar 2002 17:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845120#M393920</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-03-08T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting issue where it wants a tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845121#M393921</link>
      <description>Hi Bernie:&lt;BR /&gt;&lt;BR /&gt;After reading all this, I can see two options:&lt;BR /&gt;&lt;BR /&gt;Plan A: Relatively easy but messy (and you've already mentioned it) Loop output from one tty port to another.&lt;BR /&gt;&lt;BR /&gt;Plan B: Elegent but technically difficult. Write and install a pseudo-tty device driver so that the isatty(0) function returns 0 and thus the application thinks stdin is a tty device (because it is). The idea is that your can write to this pseudo device and store your input and then the read read from the buffer.&lt;BR /&gt;&lt;BR /&gt;I did have to do something very much like this many years ago but I haven't done it in the HP-UX world.&lt;BR /&gt;&lt;BR /&gt;Food for thought, Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2002 17:25:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-issue-where-it-wants-a-tty/m-p/4845121#M393921</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-03-08T17:25:40Z</dc:date>
    </item>
  </channel>
</rss>

