On Thu, 22 Apr 2010 17:35:22 -0700 MGandra@diskeeper.com wrote:
Hi
I have an RPM package which will install and I need to get the Username and Password for root user and write it to a config file.
Why on earth for?
I can have another script file through which I can get user input and install RPM and then write to the config file, but I want to get user input and install rpm from one file.
You should never ask for input when installing packages.
Perhaps you could have the application ask for configuration the first time it's run?
I need one file that I can distribute it and does above things. How to do that?
I would suggest backing up and looking at your higher level goals and see if there is some better way to solve them.
kevin