![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| How to write to stdin of another program (program A -> [stdin]program B) | vvaidyan | UNIX for Dummies Questions & Answers | 3 | 08-02-2008 05:21 PM |
| How to write to stdin of another program (program A -> [stdin]program B) | vvaidyan | High Level Programming | 1 | 04-30-2008 01:44 PM |
| redirect STDIN | prkfriryce | Shell Programming and Scripting | 4 | 01-04-2007 10:11 AM |
| redirection stdin | whited05 | Shell Programming and Scripting | 2 | 10-12-2005 02:03 PM |
| stdin | marquis | High Level Programming | 2 | 04-14-2005 01:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Redirecting to stdin
Hi,
I'm having trouble with my script. I have to select different choices without any interaction from a menu that looks like : a - xxxxxxxxxxxxxx b - xxxxxxxxxxxxxx c - xxxxxxxxxxxxxx d - xxxxxxxxxxxxxx I tried things like : Code:
echo "a" >&0 read < echo "a" |
|
||||
|
I'll reexplain my problem.
The script I'm working on will run on a server divided in "environnements". By selecting "a", it redirects to a certain folder. From there, it does what it has to do. But I need to do this for each "environnement". I can call the menu from anywhere but I need to tell it that I want to go on "environnement" X depending on which ones are done. I hope this is clearer |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|