Re: user input in %post section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 9 Jul 2002, Todd Chilson wrote:

>chvt 3
>set -x
>echo "Enter blast host number (1-34, etc.): \c"
># read BLNUM
>BLNUM=blast24
>echo -n "The hostname of this blast machine will be blast${BLNUM}"

chvt does not (cannot) change the file descriptors of the shell, so
although you switch to tty3, that's not where the shell's stdin is
coming from.

I'm almost certain you need something like:
exec < /dev/tty3 > /dev/tty3

before the chvt line.
(As I said before, "ls -l /proc/self/fd" is your friend.)


Cheers,

Phil






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux