![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trap key press in a script | praveenbvarrier | Shell Programming and Scripting | 3 | 04-05-2008 05:56 PM |
| TheOnlin Backup.com Offers Customers Free Trial - The Open Press (press release) | iBot | UNIX and Linux RSS News | 0 | 07-30-2007 01:30 AM |
| Parametric test systems make switch to Linux - Electronics Talk (press release) | iBot | UNIX and Linux RSS News | 0 | 07-20-2007 02:30 AM |
| Print to Any Windows Printer from DOS, Unix, Linux, legacy ... - Press World (press r | iBot | UNIX and Linux RSS News | 0 | 07-02-2007 08:50 AM |
| replace buttons with hyperlinks | handshakeit | Shell Programming and Scripting | 1 | 10-13-2005 09:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Make my script press buttons
I am having some problems trying to come up with way that my script can press <enter> for me.
I am surrounded by people who are not UNIX friendly, and I want my script to push Enter for me, without bothering the user to hit it. Is that possible? maybe with stty or something? Been racking my brain on this, but can't figure it out. Any help is appreciated. |
|
||||
|
Quote:
Code:
echo "" | program-that-is-waiting-for-enter or Code:
program-that-is-waiting-for-enter <file-that-only-contains-a-newline or Code:
tell robotic-arm
extend
rotate left 90%
down
up
rotate right 90%
retract
end
|
|
||||
|
well nothing is actually waiting for it.
I have a huge "select do case" statement. and each time after chossing one of the options, I want to clear the screen and automatically hit <enter> again to show the select options. kinda lame, and not exactly required, but I am sure the end user will be much happier with it. so I am trying to put this at the end of each case choice. that robotic arm would be cool too, but I don't have a spare lying around ![]() |
|
||||
|
Quote:
I thought the menu was always displayed before the prompt.... |
|
||||
|
i guess the PS3 prompt is waiting. Code:
PS3="Select the item number:" because in a select command it just sits and wait for you to choose, so i want it to automatically hit <enter> right when it gets back to the PS3 prompt after completeing the previous selection. This way it displays the full list of choices again. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|