Rick Thomas wrote: >When the script is run by rpm, it probably has input redirected from >/dev/null. As the docs say, it should be non-interactive. Anything else >will break scripted installations. > > > > Yes. It is so.
In fact I used something like %pre $bashscript = /tmp/myfile echo "#!/bin/sh" > $bashscript echo "Stew Benedict suggestion" >> $bashscript chmod 700 $bashscript sh $bashscript So i was REALLY sure it was a bash script to be executed (sorry but I am new to rpms) and the problem was the same. Then I run /tmp/myfile and it worked... so I think the input is redirected from /dev/null. OK. I will write a mini setup program as Microsft does ;) Up to now I just "echo" out the instructions and the license (with a line that sounds like 'using the software presumes you have accepted the license terms at all" Regards, Miguel Beccari