First, let's say that this is the compilation instructions:
START FILE
./configure --prefix=/usr
make
make install
END FILE
Throw an "exit" on the end of that, your root password on the front, giving:
START FILE
123456
./configure --prefix=/usr
make
make install
exit
END FILE
Then simply call:
echo build-package-name.txt | su
Assuming that you meant
cat build-package-name.txt | su
this makes bash read neither /etc/bash_profile, nor ~/.bash_profile. This is the case even if su is invoked with -. With package
users, I need bash to read ~/.bash_profile before I execute the instructions in build-package-name.txt.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page