<?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: stty: not a typewriter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445519#M769461</link>
    <description>Rick,&lt;BR /&gt;&lt;BR /&gt;Your 'su - oracle ' is running the profile scripts for user oracle. &lt;BR /&gt;&lt;BR /&gt;These include a call to 'ttytype' which tries to determine the terminal type and 'stty'.&lt;BR /&gt;&lt;BR /&gt;Because these are being run from cron or a script not associated with a terminal, both commands complain.&lt;BR /&gt;&lt;BR /&gt;Try just doing 'su oracle -c &lt;WHATEVER&gt;' to avoid calling the profiles. You will have to ensure that the correct environment is setup however.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/WHATEVER&gt;</description>
    <pubDate>Thu, 14 Sep 2000 20:41:04 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2000-09-14T20:41:04Z</dc:date>
    <item>
      <title>stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445516#M769458</link>
      <description>Got a script that runs as root, does the su - oracle -c dbstart/dbshut and works as expected for the most part. However, it comes back with "ttytype: couldn't open tty for reading   stty: not a typewriter".&lt;BR /&gt;&lt;BR /&gt;Been so long since I've had to deal with this and I cannot find anything docs for it. &lt;BR /&gt;What am I missing?&lt;BR /&gt;&lt;BR /&gt;Many thanks!</description>
      <pubDate>Thu, 14 Sep 2000 20:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445516#M769458</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-09-14T20:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445517#M769459</link>
      <description>Hi Rick!&lt;BR /&gt;&lt;BR /&gt;Not a typewriter&lt;BR /&gt;&lt;BR /&gt;"You can get this message from many sources.  Usually, the message means you executed a program that expects to deal with a terminal and you have forced the program to deal with a different device."  This is from document #HPUXERR01 (General HP-UX system error messages).&lt;BR /&gt;&lt;BR /&gt;In some of my scripts I've defined a boolean as follows:&lt;BR /&gt;&lt;BR /&gt;typeset INTERACTOK=0 &amp;amp;&amp;amp; [ -t -eq 0 ] &amp;amp;&amp;amp; INTERACTOK=1&lt;BR /&gt;&lt;BR /&gt;Then I can conditionally execute code based on whether I started from a terminal (or not, as in cron).&lt;BR /&gt;&lt;BR /&gt;Hope this helps.  Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Sep 2000 20:37:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445517#M769459</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-09-14T20:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445518#M769460</link>
      <description>Rick:&lt;BR /&gt;&lt;BR /&gt;Oh, one more.  If your cron entry sources your profile for your script, then you will get this nasty complaint.  The profile is full of stty goodies.  I suspect that's closer to your problem.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Sep 2000 20:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445518#M769460</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-09-14T20:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445519#M769461</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;Your 'su - oracle ' is running the profile scripts for user oracle. &lt;BR /&gt;&lt;BR /&gt;These include a call to 'ttytype' which tries to determine the terminal type and 'stty'.&lt;BR /&gt;&lt;BR /&gt;Because these are being run from cron or a script not associated with a terminal, both commands complain.&lt;BR /&gt;&lt;BR /&gt;Try just doing 'su oracle -c &lt;WHATEVER&gt;' to avoid calling the profiles. You will have to ensure that the correct environment is setup however.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/WHATEVER&gt;</description>
      <pubDate>Thu, 14 Sep 2000 20:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445519#M769461</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-14T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445520#M769462</link>
      <description>Rick:&lt;BR /&gt;&lt;BR /&gt;You could edit the ~oracle/.profile and perform a test such as:&lt;BR /&gt;&lt;BR /&gt;if [ tty -s ]  # are we logging in with a terminal?&lt;BR /&gt;&lt;BR /&gt;and bypass the commands that would need terminal interaction.&lt;BR /&gt;&lt;BR /&gt;man tty&lt;BR /&gt;&lt;BR /&gt;cheers.</description>
      <pubDate>Thu, 14 Sep 2000 20:48:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445520#M769462</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-14T20:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445521#M769463</link>
      <description>I beliee Johnnailed it.  Don't source the full oracle profile, simply specify the environment you actually require.  We set ours up in /etc/oraenv which makes the task quite simple.</description>
      <pubDate>Thu, 14 Sep 2000 20:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445521#M769463</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-09-14T20:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445522#M769464</link>
      <description>Hi Rick !&lt;BR /&gt;&lt;BR /&gt;  We have experienced the same problem. If you use this in a cron, maybe you can add the nohup command before yours to avoid the call to a tty.&lt;BR /&gt;&lt;BR /&gt;Let me know if it has helped you.&lt;BR /&gt;&lt;BR /&gt;Francois H.</description>
      <pubDate>Fri, 15 Sep 2000 07:39:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445522#M769464</guid>
      <dc:creator>FOREST Michel</dc:creator>
      <dc:date>2000-09-15T07:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445523#M769465</link>
      <description>You have this message because the system has not the correct TERM.&lt;BR /&gt;The solution is to add   2&amp;gt;&amp;amp;-  after the command su - oracle -c "...".&lt;BR /&gt;Try this redirection, it should solve your problem.&lt;BR /&gt;&lt;BR /&gt;Victor N.</description>
      <pubDate>Fri, 15 Sep 2000 08:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445523#M769465</guid>
      <dc:creator>FOREST Michel</dc:creator>
      <dc:date>2000-09-15T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445524#M769466</link>
      <description>Rick&lt;BR /&gt;&lt;BR /&gt;The scripts dbshut and dbstart are setting up the environment already.&lt;BR /&gt;&lt;BR /&gt;There is no need to source .profile; ie do not use the - with su&lt;BR /&gt;&lt;BR /&gt;su oracle -c "/opt/oracle/product/8.0.5/bin/dbstart"&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Sep 2000 08:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445524#M769466</guid>
      <dc:creator>Geetam</dc:creator>
      <dc:date>2000-09-15T08:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: stty: not a typewriter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445525#M769467</link>
      <description>Rick, &lt;BR /&gt;&lt;BR /&gt;Andy and John are right. I use to have this messages in my /etc/rc.log files due from oracle startup scripts. Just change (su - oracle_sid -c database) to (su oracle_sid - database) in your /sbin/init.d file for oracle database startup/stop script.</description>
      <pubDate>Fri, 15 Sep 2000 09:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stty-not-a-typewriter/m-p/2445525#M769467</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-09-15T09:27:57Z</dc:date>
    </item>
  </channel>
</rss>

