When I run a script from the vCLI it opens a windows. It runs the script and closes the window immediately even it it successful or failed. I would like the window to stay open so I can see if it failed and what the error is?
As you posted this in PowerCLi, I suspect you mean that you are getting a PowerCli window pops up and closes?
you could either copy the contents of youir script to a windows and run it there, or simply drop something like a read-host at the end of your script, to wait for an entry.
You should really though consider getting your script to log its output somewhere.
Thanks for the reply, yes when I run esxcfg-scsidevs.pl -server <servername> -l a perl.exe window opens the commands runs then closes immediately. How would I get the script to output to a text file so I can see what was going on.