Re: how to run a program during %post section

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

 



On Mon, 2002-08-12 at 07:43, eylon eyal wrote:
> i did everything said to do in th user input in %post section, thread.
> and now i want to run the redhat script timeconfig (to selcet time zone)
> but when ever i press a key it write its letter to the screen instad of to the 
> program
> 
> 
> my post looks like
> 
> 
> %post
> exec < /dev/tty3 > /dev/tty3
> chvt 3
> set -x
> clear
> echo "Enter host Name: "
> read TADLYS_HOST
> echo -e "NETWORKING=yes\nHOSTNAME=${TADLYS_HOST}" > /etc/sysconfig/network
> timeconfig
> 
Because you have tied stdin and stdout to /dev/tty3, try this:

timeconfig < /dev/tty3 > /dev/tty3

-- 
Jason Kohles                                 jkohles@xxxxxxxxxx
Senior Engineer                 Red Hat Professional Consulting





[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