- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how can i get this function?
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
02-20-2002 12:36 AM
02-20-2002 12:36 AM
how can i get this function?
echo "press any key to contiune"
to get it,i write :
read AAA
echo "now contiune"
...
but only when i press enter,it could be contiune,any other key does not work?
what's happen?how can i get the function as the echo says:press any key to contiune....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 12:46 AM
02-20-2002 12:46 AM
Re: how can i get this function?
Since 'read' uses buffered input, you have to wait till Enter is hit.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 12:47 AM
02-20-2002 12:47 AM
Re: how can i get this function?
the read-command allways reads from standard input. The input is stopped by the return-key. So it doesn't matter which keys are pressed, the input is ALLWAYS stopped by the return-key.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 12:55 AM
02-20-2002 12:55 AM
Re: how can i get this function?
If you have perl, this should do it:
======================================
#!/opt/perl5/bin/perl
system "stty -icanon";
$key=getc;
system "stty icanon";
print "\n";
======================================
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 01:07 AM
02-20-2002 01:07 AM
Re: how can i get this function?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96a6ee3e323bd5118fef0090279cd0f9,00.html
But there is another question, i cant find it, that uses a command to do it.