<?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: ttytype error on shutdown in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134837#M153786</link>
    <description>I get that message when I run any command this way :&lt;BR /&gt;&lt;BR /&gt;# su - root -c "echo HELLO"&lt;BR /&gt;&lt;BR /&gt;I will get the message from that.  If I run the command using any other id, I don't.&lt;BR /&gt;&lt;BR /&gt;I checked and there doesn't seem to be any instance of ttytype is any file within /sbin/init.d...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Dec 2003 14:41:31 GMT</pubDate>
    <dc:creator>Rachel Smith_1</dc:creator>
    <dc:date>2003-12-04T14:41:31Z</dc:date>
    <item>
      <title>ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134828#M153777</link>
      <description>I have a script (scriptA), that calls another script (scriptB) which performs a shutdown of my HPUX box (11.00).  If you look at scriptA it looks something like this :&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;/opt/scriptB &amp;amp;&lt;BR /&gt;&lt;BR /&gt;#end of script&lt;BR /&gt;&lt;BR /&gt;When this script executes, I get this error during the shutdown :&lt;BR /&gt;&lt;BR /&gt;ttytype: couldn't change current tty settings: I/O error&lt;BR /&gt;&lt;BR /&gt;If I run this script the same but DON'T run scriptB in the background, I don't get the error.  What exactly is this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rachel</description>
      <pubDate>Wed, 03 Dec 2003 09:52:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134828#M153777</guid>
      <dc:creator>Rachel Smith_1</dc:creator>
      <dc:date>2003-12-03T09:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134829#M153778</link>
      <description>ttytype is a utility which interrogates the calling terminal to find out what kind it is, and reports back what it finds.&lt;BR /&gt;&lt;BR /&gt;It does not normally attempt to change any settings, instead the values it reports are often used to drive subsequent terminal setting commands. See man ttytype.&lt;BR /&gt;&lt;BR /&gt;It sounds as if in your case, ttytype is being called inappropriately.&lt;BR /&gt;Since you are shutting down in any case, it is probably no big deal, but if you are desparate to supress this message, you need to find the call to "ttytype" from within /opt/scriptB and debug it (or post it here).&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Thu, 04 Dec 2003 10:23:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134829#M153778</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-12-04T10:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134830#M153779</link>
      <description>The only thing in scriptB is this :&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;cd /&lt;BR /&gt;/sbin/shutdown -h -y now&lt;BR /&gt;#end of script&lt;BR /&gt;&lt;BR /&gt;I never call ttytype, so I don't understand why I would be getting and error from it.  Plus, it only happens when this script is being called and put to the background (with an "&amp;amp;").  Otherwise, I don't get this error.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 11:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134830#M153779</guid>
      <dc:creator>Rachel Smith_1</dc:creator>
      <dc:date>2003-12-04T11:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134831#M153780</link>
      <description>OK&lt;BR /&gt;&lt;BR /&gt;Change scriptB from&lt;BR /&gt;&lt;BR /&gt;  /sbin/shutdown -h -y now&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;  /sbin/shutdown -h -y now &lt;BR /&gt;-- Graham&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 11:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134831#M153780</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-12-04T11:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134832#M153781</link>
      <description>When you run something in the background and termio calls are made, there is no associated terminal (we have all seen "not a typewriter" errors). I would guess ttytype gets a bit upset about finding the type of a non existant terminal.&lt;BR /&gt; &lt;BR /&gt;I imagine ttytype gets run in shutdown at some point, persumably to do all that funky cursor positioning stuff it does.</description>
      <pubDate>Thu, 04 Dec 2003 11:11:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134832#M153781</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-04T11:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134833#M153782</link>
      <description>This "/sbin/shutdown -h -y now &lt;BR /&gt;/sbin/shutdown -h -y now 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;I am hoping there is a way to fix the error rather than just not seeing it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 11:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134833#M153782</guid>
      <dc:creator>Rachel Smith_1</dc:creator>
      <dc:date>2003-12-04T11:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134834#M153783</link>
      <description>I've not seen this behaviour on a vanilla HP-UX system. However 'ttytype' is called from /etc/profile. &lt;BR /&gt;&lt;BR /&gt;Do you have any of your own shutdown scripts that call 'su - user -c command' ? The su - user is a common problem and is the usual cause of the 'not a typewriter' errors that Mark mentioned.&lt;BR /&gt;&lt;BR /&gt;To fix it, you should replace&lt;BR /&gt;su - user -c command   with&lt;BR /&gt;su user -c command&lt;BR /&gt;but ensure that the correct environment (exported variables, PATH etc) is either set-up before calling su or within 'command' itself.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 04 Dec 2003 12:03:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134834#M153783</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-12-04T12:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134835#M153784</link>
      <description>No, I don't call any of the scripts using "su - ....", but if I do run the script that way, it does get rid of the error.  Insead, I get this message when I run the command :&lt;BR /&gt;&lt;BR /&gt;********************************************&lt;BR /&gt; WARNING!  WARNING!  WARNING!  WARNING!  &lt;BR /&gt;********************************************&lt;BR /&gt;&lt;BR /&gt;THIS SYSTEM HAS BEEN BOOTED USING A TEMPORARY KERNEL!&lt;BR /&gt;DO NOT ATTEMPT TO INVOKE MULTI-USER RUN-LEVEL USING THIS KERNEL!&lt;BR /&gt;&lt;BR /&gt;     Type the following command from the shell prompt for more information           about&lt;BR /&gt;completing the recovery process:&lt;BR /&gt;&lt;BR /&gt;       cat /RECOVERY.DOC&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;********************************************&lt;BR /&gt;&lt;BR /&gt;Is this normal when using doing "su - user -c command"??&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 12:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134835#M153784</guid>
      <dc:creator>Rachel Smith_1</dc:creator>
      <dc:date>2003-12-04T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134836#M153785</link>
      <description>When I mentioned shutdown scripts, I meant scripts in /sbin/init.d that are linked from Knnn scripts in sbin/rc2.d etc. These are called by shutdown and also init when you change the runlevel.&lt;BR /&gt;&lt;BR /&gt;What command are you running to get that message?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 13:21:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134836#M153785</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-12-04T13:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134837#M153786</link>
      <description>I get that message when I run any command this way :&lt;BR /&gt;&lt;BR /&gt;# su - root -c "echo HELLO"&lt;BR /&gt;&lt;BR /&gt;I will get the message from that.  If I run the command using any other id, I don't.&lt;BR /&gt;&lt;BR /&gt;I checked and there doesn't seem to be any instance of ttytype is any file within /sbin/init.d...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 14:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134837#M153786</guid>
      <dc:creator>Rachel Smith_1</dc:creator>
      <dc:date>2003-12-04T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134838#M153787</link>
      <description>So your message is probably coming from /.profile. Do you get it when you log in as root?&lt;BR /&gt;&lt;BR /&gt;What you should be looking for in /sbin/init.d is any script that calls 'su -'.</description>
      <pubDate>Thu, 04 Dec 2003 15:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134838#M153787</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-12-04T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype error on shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134839#M153788</link>
      <description>Yes, I do get that message when I log on as root (using su -).&lt;BR /&gt;&lt;BR /&gt;There are not any scripts within /sbin/init.d that call any script with a "su -".</description>
      <pubDate>Thu, 04 Dec 2003 15:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-error-on-shutdown/m-p/3134839#M153788</guid>
      <dc:creator>Rachel Smith_1</dc:creator>
      <dc:date>2003-12-04T15:57:52Z</dc:date>
    </item>
  </channel>
</rss>

