I have done the scripting such that it will read input line by line from a txt file and is passed through a script, but now my requirement is to pass two variables into a script from a file, how could I do this or is there any other better idea ?
for reading singe input from a file, line by line I have used the below script
while read -r inputname
do
java weblogic.Admin -adminurl -username weblogic -password xxxxx -mbean Name=$inputname,ServerRuntime=aaaa,Type=JDBCConnectionPoolRuntime" > output.log
done < filename.txt
Now the requirement is since there needs to be another server also which needs to be monitored, I need to pass as a dynamic value for ServerRuntime