Sunday, August 24, 2008

Resolving a list of hostnames!

Today I had to resolve a list of hostnames the long way, yeah that way! The thing is, I have no skill whatever in writing Windows batch files, if it were bash or csh, I could of written something in a minute and got moved on.

#!/bin/bash
while read hostname
do
ping REPLY > ipList.txt
done

Probably something like this would of done, I haven't tested it though.

No comments: