Computing.Net > Forums > Networking > Need DOS ping script sample

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need DOS ping script sample

Reply to Message Icon

Name: joe_schmoe2007
Date: February 11, 2008 at 10:46:20 Pacific
OS: XP
CPU/Ram: Pentium\1 GB
Product: DELL GX 620
Comment:

I need a DOS batch file to ping an external list of server by hostname, not IP. Also, I need to have the results piped to another external text file and want these results emailed to a few people. Anyone have a sample DOS script I could copy?



Sponsored Link
Ads by Google

Response Number 1
Name: wanderer
Date: February 11, 2008 at 10:57:51 Pacific
Reply:

ping hostname >> mypingtest.txt
ping hostname >> mypingtest.txt

so on and so forth. simple to write. >> means append so you need to create the text file first. How you are going to automate this with email... good luck.

Might want to check into programs like What's Up Gold on other network monitoring softwares which so have the ability to email.

Imagine the power if you knew how to internet search


0

Response Number 2
Name: StuartS
Date: February 11, 2008 at 12:04:46 Pacific
Reply:

You can use Sendmail to send the resultant text files. The text files can be used as input to the sendmail applcation using << instead of >>. Make sure you read and understand the instructions on how to configure the .ini file.

http://glob.com.au/sendmail

Sendmail is designed to be used with scripting languages.

Stuart


0

Response Number 3
Name: joe_schmoe2007
Date: February 11, 2008 at 12:05:10 Pacific
Reply:

~Thanks for the quick reply. Here is what I'm getting: "The process cannot access the filebecause it is being used by another process".
Any suggestions?


0

Response Number 4
Name: wanderer
Date: February 11, 2008 at 12:21:51 Pacific
Reply:

perhaps this will help
http://www.computing.net/programmin...

Imagine the power if you knew how to internet search


0

Response Number 5
Name: joe_schmoe2007
Date: February 11, 2008 at 12:58:44 Pacific
Reply:

Thanks for the last link Wanderer, exactly what I needed. Thanks to all others too.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: Need DOS ping script sample

DOS ping tool // freeware tool? www.computing.net/answers/networking/dos-ping-tool-freeware-tool/15065.html

DOS Ping www.computing.net/answers/networking/dos-ping/8858.html

What Ports Do Ping Use? www.computing.net/answers/networking/what-ports-do-ping-use/24183.html