Script Magic16 May 2012
When working with lots of remote machines it’s sometimes necessary to reboot them. Then it’s always a pain to wait for them booting up. If the machines have extra interface cards, e.g. RAID, you have to sit there for a while until the machine becomes usable. So being a geek, I made a (Windows) script:
This script requires cygwin on windows and you should install it’s ping implementation – the windows version doesn’t return with an error if the host in unreachable. You also have to run it as an administrator on windows, because it needs these privileges to open a socket.
Here’s the script to show the messagebox:
The popop.bat only contains this:
And here’s the final tidbit, a visual basic script to show a messagebox.
This comes in handy in other situations, too. For instance you can schedule an alarm with Windows’ task scheduling:
This script will display a messabox with the text “Lunch” every day at noon. You can choose much more refined date schedules or intervals. Here’s the documentation.