init scripts, redhat, console use
bscott at ntisys.com
bscott at ntisys.com
Wed Sep 18 09:30:30 EDT 2002
On Tue, 17 Sep 2002, at 11:07am, shillman at alumni.unh.edu wrote:
> I'm trying to interact with the user from an init script ...
I've always just used the "read" built-in for this.
echo -n "What is your name? "
read FOO
echo "You're a real frood, $FOO. You really know where your towel is."
> ... how to set stdin and stdout in a (bash) init script.
I'm not sure what you mean by this...?
> Also tried to RTFM, but couldn't figure out which M to R. :)
Some time spent with "man bash" was very productive for me, in terms of
shell scripting. I can imagine it wouldn't be for everyone, though. :)
--
Ben Scott <bscott at ntisys.com>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or |
| organization. All information is provided without warranty of any kind. |
More information about the gnhlug-discuss
mailing list