init scripts, redhat, console use
Kevin D. Clark
kclark at CetaceanNetworks.com
Wed Sep 18 10:12:30 EDT 2002
Suzanne Hillman <shillman at alumni.unh.edu> writes:
> I'm trying to interact with the user from an init script, so was hoping
> someone here would have a suggestion on how to set stdin and stdout in a
> (bash) init script. This is under redhat (7.1, I believe), if it matters.
I've seen RH SYSV init scripts prompt for user input before, so I
assume that these scripts are being run in an environment with a
controlling terminal.
So I'd try to use the stdin and the stdout that is given to you. What
happens when you try that?
If your process doesn't have a controlling terminal, actually going
through the process of acquiring one is a bit hairy...
Regards,
--kevin
--
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc
More information about the gnhlug-discuss
mailing list