Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

Script crashing randomly

$
0
0

I have a Perl script I use to reboot provisioned desktops.

 

http://pastebin.com/bpUG1wLR

 

Unfortunately it only works half the time, and I can't figure out why.  One day it'll go through all the machines, the next day it crashes.  The best reproduction of the bug I've been able to create shows me it crashes when it finds a machine where VMTools isn't running, but this only confuses me since I thought PowerOffVM forced a shut down the host not the guest.

 

I'm considering switching to the asychronus functions so the script will just coninue on if it hits one it can't handle, but I'd like to be able to solve the problem if possible.  Any help is appreciated.  Thanks in advance.


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>