Sign in to follow this  
Followers 0
VJD

Ping server untill Restart then run script

3 posts in this topic

Hi All,

Is there a way which I can Ping an IP address if it replys then send a reboot command, wait for it to come back and then run a script after 1 minute?

Basically:

Ping Server IP

If reply then send Reboot command

Keeping pinging untill server comes back up

Once server up wait 1 minute

Then run script

Any help is appriciated

Regards

VJ

Share this post


Link to post
Share on other sites



Welcome to the forum.

Search the forum for ping and you will find posts like:

http://www.autoitscript.com/forum/index.ph...st&p=302531

which shows a simple way to use the ping info...

Use the info in the FAQ - see Q9

http://www.autoitscript.com/forum/index.ph...st&p=253174

for restarting the remote system

Use Sleep() to wait as long as you want.

Post your code if you have trouble.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Welcome to the forum.

Search the forum for ping and you will find posts like:

http://www.autoitscript.com/forum/index.ph...st&p=302531

which shows a simple way to use the ping info...

Use the info in the FAQ - see Q9

http://www.autoitscript.com/forum/index.ph...st&p=253174

for restarting the remote system

Use Sleep() to wait as long as you want.

Post your code if you have trouble.

Working on A script right now!

Thanks for the advice!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0