restart_guiding.pl is a sample script showing simple monitoring and control of PHD2. The script connects to phd2 and waits for "star lost" events. If the "star lost" condition persists for more than a specified amount of time, the script will stop guiding, wait for a while, then try to start guiding again (including auto-selecting a star). To run the script you'll need to install perl. Try here: http://www.perl.org/get.html or, install cygwin https://cygwin.com/install.html and select perl in the cygwin installer. Then run perl restart_guiding.pl from a windows console window. Open restart_guiding.pl in a text editor and modify the values at the top of the file to change the various parameters. Andy Galasso andy.galasso@gmail.com