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 :
echo "a" >&0
read < echo "a"
but none worked. Any idea ?
try redirecting to /dev/tty - assuming I got what you want.
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
echo "a" | ./environment_select.sh
Thanks, that worked. Should have thought about something like that....