HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stty: not a typewriter
Operating System - HP-UX
1837047
Members
3181
Online
110111
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-13-2008 09:19 AM
03-13-2008 09:19 AM
stty: not a typewriter
When I run the script:
su - ${USER} -c .....
I get the error below.
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
Can somebody provide assistance please?
thank you,
Marylou Kohlmeier
MIS Dept
College of the Canyons
su - ${USER} -c .....
I get the error below.
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
Can somebody provide assistance please?
thank you,
Marylou Kohlmeier
MIS Dept
College of the Canyons
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 09:30 AM
03-13-2008 09:30 AM
Re: stty: not a typewriter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 09:45 AM
03-13-2008 09:45 AM
Re: stty: not a typewriter
HI:
When you use 'su -' you are causing the user's login profile to be executed. This sources (reads) the login profile to create a login-like environment with all the attendant enviornmental variable set just as a login shell would establish.
That's fine except for the fact that standard login profiles contain terminal-oriented commands like 'stty' and 'tset' which expect to be interactive with the controlling terminal.
Since there is no terminal associated with this process, you get the errors seen.
One way to circumvent this is to amend your '.profile' to *conditionally* execute terminal-oriented commands only when the process is associated with a terminal:
if [ -t 0 ]; then
...
eval ` tset -s -Q `
stty ...
fi
Regards!
...JRF...
When you use 'su -' you are causing the user's login profile to be executed. This sources (reads) the login profile to create a login-like environment with all the attendant enviornmental variable set just as a login shell would establish.
That's fine except for the fact that standard login profiles contain terminal-oriented commands like 'stty' and 'tset' which expect to be interactive with the controlling terminal.
Since there is no terminal associated with this process, you get the errors seen.
One way to circumvent this is to amend your '.profile' to *conditionally* execute terminal-oriented commands only when the process is associated with a terminal:
if [ -t 0 ]; then
...
eval ` tset -s -Q `
stty ...
fi
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 10:07 AM
03-13-2008 10:07 AM
Re: stty: not a typewriter
Thank you
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP