HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: stty: : Not a typewriter
Operating System - Linux
1827741
Members
3083
Online
109969
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
08-02-2005 04:40 PM
08-02-2005 04:40 PM
stty: : Not a typewriter
Hi,
When i write a small scrit as follows, i get the error message in subject.
sttyset=`stty -g`
exec < t
while read line
do
echo $line
done
stty $sttyset
read aa
Can somebody pls advice how to read back again from keyboard.
When i write a small scrit as follows, i get the error message in subject.
sttyset=`stty -g`
exec < t
while read line
do
echo $line
done
stty $sttyset
read aa
Can somebody pls advice how to read back again from keyboard.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 05:28 PM
08-02-2005 05:28 PM
Re: stty: : Not a typewriter
http://docs.hp.com/en/B2355-90046/ch21s04.html
this will teach you read in korn
this will teach you read in korn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 07:20 PM
08-02-2005 07:20 PM
Re: stty: : Not a typewriter
Hi
Have a look at
www.shelldorado.com
Great for starting out in shells
Steve Steel
Have a look at
www.shelldorado.com
Great for starting out in shells
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Tags:
- shelldorado
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 08:14 PM
08-02-2005 08:14 PM
Re: stty: : Not a typewriter
Your use of exec is now correct, you are replacing your entire shell. You only want to feed the contents of t into the while..do..done block, so change your code thus:
sttyset=`stty -g`
while read line
do
echo $line
done < t
stty $sttyset
read aa
sttyset=`stty -g`
while read line
do
echo $line
done < t
stty $sttyset
read aa
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP