Re: user input in %post section

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

 



Philip,

  You are a good and kind man (actually any and everyone who responded is...).  :-)  My new script works.  I don't know how I can repay you for that, but I don't think I will forget that anytime soon.

Thanks again,

-Todd

exec < /dev/tty3 > /dev/tty3
chvt 3
set -x
echo "Enter blast host number (1-34, etc.): \c"
read BLNUM
# BLNUM=24
cat /etc/sysconfig/network | sed -e "s/^HOSTNAME.*/HOSTNAME=blast${BLNUM}/" > /etc/sysconfig/
network.new
mv /etc/sysconfig/network.new /etc/sysconfig/network
 
 

Philip Rowlands wrote:

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

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list

-- 
------------------
Todd Chilson
Desktop Support
Incyte Genomics
Tel # 978-816-0226
------------------
 

[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