On Sat, Jan 19, 2013 at 10:00 PM, Amit Bondwal <[email protected]>wrote:
> Hi All, > > I want to write a script to ssh number of servers on run some commands > and get the output in a text file. > > My limitations are given below: > > 1. I can't use public key authentication. > 2. I can't install sshpass or expect package on that server. > 3. No spawn command available. > 4. Can't install any other package on server. > 5. All servers are REDHAT 5.5 > > As per my view, only option left is that, I write a bash script who > pick up username, > ip address and password from a different file. > > I am not getting by a lot of searching, how to pick up password from a > file for ssh command. > well i am not an expert but i think "sed" is helpful utility here. please correct me if i am wrong? -- Thanks Arshpreet singh http://arshpreetsingh.wordpress.com/ -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
