Script to Reboot Digi Connect SP

Hi everyone,

I want to reboot the Digi Connect SP via script if the serial port communication fails.
A program monitors the communication and can execute a batch file or HTML-Code.
Does anyone have an idea how such a script might look like?
Thanks for your answers.

First question, what development environment are you using. Answers could be plug-and-play, NET+OS or Linux.

Second, I am a little confused by the question. If communications fail how do you expect to communicate with the device?

Maybe you should be a little more specific and detailed relative what you are looking to do?

here is a python application that does part of what you want:
http://www.digi.com/wiki/developer/index.php/Reboot_gateway_at_a_specific_time

serial port example:
http://www.digi.com/wiki/developer/index.php/Connect_Port_Serial_Port_Access