![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enter to OBP | jess_t03 | SUN Solaris | 5 | 02-13-2008 12:14 PM |
| read the ENTER key | sars | Shell Programming and Scripting | 4 | 11-27-2006 08:34 AM |
| Can i enter password with out user interaction | kumar_d | Shell Programming and Scripting | 1 | 06-21-2005 03:21 AM |
| Cant enter password | possuman72 | SUN Solaris | 2 | 06-10-2005 03:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I'd like to write a shell script that will enter '1', for example. How
do you do that? You know, so instead of writing echo "Enter 1 or 2" read onetwo and waiting for the user to enter a 1 or 2, I'd like the script to act like someone entered a 1, or 2. Is there a hex value for the return key or something? |
|
||||
|
you want expect or the perl telnet module
check this out for expect http://www.oreilly.com/catalog/expect/chapter/ch03.html both of these allow you to automate many tasks that usually require user input, both have "Enter" capabilities |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|