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
01-21-2004 08:51 AM
01-21-2004 08:51 AM
I thought this was set by default.
The other systems have susp = ^Z after login.
Checked all source files for login.
root using /sbin/sh.
HP-UX 11.0.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 09:01 AM
01-21-2004 09:01 AM
SolutionThere are may be quite a few reasons why it got changed. One is a previous reset of these options by redirecting the stdin to /dev/ttyconf.
You can set it back by redirecting stdin to the device /dev/ttyconf
For ex., you would set susp to ^Z by
stty susp ^Z < /dev/ttyconf
From next login onwards, it will set the suspend character to ^Z.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 09:06 AM
01-21-2004 09:06 AM
Re: stty -a
If so has it recently changed.
Check for .profile entries like this
---------------
stty susp ^z
stty intr ^c
stty eof ^d
----------
The simple solution is to add these to your shell startup profile wherever it is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 09:29 AM
01-21-2004 09:29 AM
Re: stty -a
stty susp ^Z < /dev/ttyconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 09:55 AM
01-21-2004 09:55 AM
Re: stty -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 10:04 AM
01-21-2004 10:04 AM
Re: stty -a
Look at the man page for more information. Particularly
//The default values for the control characters may be changed by a user
with root capability by using stty and redirecting stdin to the device
/dev/ttyconf//
See one of the examples given also.
There was a bug with make_sys_image (run by make_tape_recovery/make_net_recovery) that it was modifying the defaults for /dev/ttyconf. Yours could have been this case.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 02:48 PM
01-21-2004 02:48 PM
Re: stty -a
if tty -s
then
eval $(ttytype -s)
stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff
stty susp \^Z dsusp \^Y
fi
The above code figures out your terminal type (only when /etc/profile is run from an interactive session) and sets the most important stty values for your terminal session. /dev/ttyconf is a global device file used to set permanent stty values, for example, to make backspace work during login.
Bill Hassell, sysadmin