- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ttytype error on shutdown
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 01:52 AM
12-03-2003 01:52 AM
#!/bin/ksh
/opt/scriptB &
#end of script
When this script executes, I get this error during the shutdown :
ttytype: couldn't change current tty settings: I/O error
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?
Thanks,
Rachel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 02:23 AM
12-04-2003 02:23 AM
Re: ttytype error on shutdown
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.
It sounds as if in your case, ttytype is being called inappropriately.
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).
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:02 AM
12-04-2003 03:02 AM
Re: ttytype error on shutdown
#!/bin/ksh
cd /
/sbin/shutdown -h -y now
#end of script
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 "&"). Otherwise, I don't get this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:08 AM
12-04-2003 03:08 AM
Re: ttytype error on shutdown
Change scriptB from
/sbin/shutdown -h -y now
to
/sbin/shutdown -h -y now
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:11 AM
12-04-2003 03:11 AM
SolutionI imagine ttytype gets run in shutdown at some point, persumably to do all that funky cursor positioning stuff it does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:45 AM
12-04-2003 03:45 AM
Re: ttytype error on shutdown
/sbin/shutdown -h -y now 2>/dev/null
I am hoping there is a way to fix the error rather than just not seeing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 04:03 AM
12-04-2003 04:03 AM
Re: ttytype error on shutdown
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.
To fix it, you should replace
su - user -c command with
su user -c command
but ensure that the correct environment (exported variables, PATH etc) is either set-up before calling su or within 'command' itself.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 04:43 AM
12-04-2003 04:43 AM
Re: ttytype error on shutdown
********************************************
WARNING! WARNING! WARNING! WARNING!
********************************************
THIS SYSTEM HAS BEEN BOOTED USING A TEMPORARY KERNEL!
DO NOT ATTEMPT TO INVOKE MULTI-USER RUN-LEVEL USING THIS KERNEL!
Type the following command from the shell prompt for more information about
completing the recovery process:
cat /RECOVERY.DOC
********************************************
Is this normal when using doing "su - user -c command"??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 05:21 AM
12-04-2003 05:21 AM
Re: ttytype error on shutdown
What command are you running to get that message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 06:41 AM
12-04-2003 06:41 AM
Re: ttytype error on shutdown
# su - root -c "echo HELLO"
I will get the message from that. If I run the command using any other id, I don't.
I checked and there doesn't seem to be any instance of ttytype is any file within /sbin/init.d...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 07:50 AM
12-04-2003 07:50 AM
Re: ttytype error on shutdown
What you should be looking for in /sbin/init.d is any script that calls 'su -'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 07:57 AM
12-04-2003 07:57 AM
Re: ttytype error on shutdown
There are not any scripts within /sbin/init.d that call any script with a "su -".