HPE GreenLake Administration
Operating System - HP-UX
1829614
Members
2115
Online
109992
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
Go to solution
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
07-05-2004 04:40 AM
07-05-2004 04:40 AM
On a machine running HP-UX B.11.00 A 9000/800, these commands hang after displaying the date once:
yes '' | head -8194 | while read x; do date; done
yes | head -4098 | while read x; do date; done
yes yes | head -2050 | while read x; do date; done
yes 1234567 | head -1026 | while read x; do date; done
but these commands show the date lots of times, as you would expect:
yes '' | head -8193 | while read x; do date; done
yes | head -4097 | while read x; do date; done
yes yes | head -2049 | while read x; do date; done
yes 1234567 | head -1025 | while read x; do date; done
This looks like a bug in ksh to me - 'sh' is fine, and it's also fine on 10.20 machines.
Is there a patch for this? It seems that if the input to the 'while' loop is more than 8k then it locks up...
Chrisak.
yes '' | head -8194 | while read x; do date; done
yes | head -4098 | while read x; do date; done
yes yes | head -2050 | while read x; do date; done
yes 1234567 | head -1026 | while read x; do date; done
but these commands show the date lots of times, as you would expect:
yes '' | head -8193 | while read x; do date; done
yes | head -4097 | while read x; do date; done
yes yes | head -2049 | while read x; do date; done
yes 1234567 | head -1025 | while read x; do date; done
This looks like a bug in ksh to me - 'sh' is fine, and it's also fine on 10.20 machines.
Is there a patch for this? It seems that if the input to the 'while' loop is more than 8k then it locks up...
Chrisak.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 07:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 07:37 AM
07-05-2004 07:37 AM
Re: ksh bug?
Bill's post reminds me that there was a series of patches(i thought security) for all the shells. You probably should have them all in production along witht he latest quarterly release.
HP-UX is not a 'if it aint broke don't fix it' OS. You gotta have a plan and be looking forward.
SEP
HP-UX is not a 'if it aint broke don't fix it' OS. You gotta have a plan and be looking forward.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 08:52 PM
07-05-2004 08:52 PM
Re: ksh bug?
Thanks for the replies. Our boxes are badly out of date, apparently never having been patched at all. It seems that the problem I am encountering was addressed in PHCO_18164 (which is contained in PHCO_27418):
9. ksh(1) hangs when processing -
"cat bigfile | while read ..."
The right side of the pipe can be any shell
commands (while, if, for, etc.)
Thanks again.
Chrisak.
9. ksh(1) hangs when processing -
"cat bigfile | while read ..."
The right side of the pipe can be any shell
commands (while, if, for, etc.)
Thanks again.
Chrisak.
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