On the same system, i first execute su. then as root, i update the file. [by anywhere_info]
I am trying to create a script to read from a file having multiple IP addresses, login to each system, execute a command and print the result.
Here is how IPs are defined in the hosts.txt file
#~] cat hosts.txt
When I execute the below script, the following errors are shown.
I use VMWare Fusion all the time for development, and one of the most common things I need to do is set my /etc/hosts file to have a special hostname resolve to it.