Hi, im trying to write a script to check the port 22 of 4 IPs.
IPS={89.17.206.180,89.17.206.185,89.17.206.186,89.17.206.187} for i in ${IPS} do nmap -p 22 {IPS} done but i get this error: Failed to resolve given hostname/IP: {IPS}. Note that you can't use '/mask' AND '1-4,7,100-' style IP ranges WARNING: No targets were specified, so 0 hosts scanned. Nmap done: 0 IP addresses (0 hosts up) scanned in 0.14 seconds Any idea? -- View this message in context: http://www.nabble.com/Problem-with-a-%22for%22-tp24369421p24369421.html Sent from the Gnu - Bash mailing list archive at Nabble.com.