![]() |
|
|
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 |
| shell script to execute user command | redtiger | Shell Programming and Scripting | 1 | 04-30-2008 07:53 PM |
| execute a command silently or quietly within a shell | lumix | Shell Programming and Scripting | 4 | 12-15-2007 03:10 PM |
| pause needed for corn shell | dennysavard | UNIX for Dummies Questions & Answers | 7 | 12-09-2007 02:16 PM |
| execute shell command in perlscript | amitrajvarma | Shell Programming and Scripting | 0 | 11-27-2007 02:49 AM |
| Urgent!! How to write a shell program to execute command to access internet? | firebirdonfire | UNIX for Dummies Questions & Answers | 2 | 04-26-2001 12:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
vbe,
Quote:
neruppu, Did you try vbe's sh -x suggestion? What exactly happens, does it loop endlessly like this? Code:
$ ./neruppu Please enter a name : [] Please enter a name : [] Please enter a name : [] Please enter a name : [] Please enter a name : [] Please enter a name : [] Please enter a name : [] ... |
|
||||
|
Quote:
Nope but i try this solution, exec 3<&0 while ............... ............... read response <&3 ............... ............... done <$input and i get the endlessly like u mention above... |
|
||||
|
Quote:
Using the shell : #!/bin/sh |
|
||||
|
Ah! You never mentioned this <$input before! Are you trying to make things more challenging for us or something?? What is contained in $input anyway?
Try read -u3 response instead of read response <&3 if your OS supports it. You still haven't said which OS by the way... |
|
||||
|
I just find out that this problem is happen its enter the main loop command ....
while [ $temp_loop_condition -eq 0 ] do next_loop=0 printf "Testing1 " <- its cant pause and wait for user input read re .................... .................... .................... done There is a possible solution for this problem? |
![]() |
| Bookmarks |
| Tags |
| linux, solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|