Hi Guru's,
I am trying to write a scripts that will automate my image provisoining process.
Scenario:
I have Linux Image Hosted on cloud which needs to be provisoned before it can be used. Currently we log onto the image through the putty on windows and connect to linux instance. I login as root then a scipt which runs as part of .profile of root user asks for certain inputs from the user which are as follows:
Accept License Agreemnet : (y/n)
New Password for user root:
New password for user xyx :
I just do not want to connect to each instance and enter the required values. I just wanted to enter the parameter as commandline input. what I tried was below
c:\putty.exe -load "session name in putty" -l root -m c:\putty1.txt
c:\putty1.txt contains the parameters y,password for users.
the issue is that this values from input file are passed on to shell before prompted for causing the script to terminate.
Any help on this will be helpful.
Arshad