Recently wrote a vbscript user experience monitor, which executes a couple of perl scripts in cmd, and echos/exits based on result.
Now a few days later our solarwinds server is at 98% memory, and has 1075 cmd.exe processes running, and 1077 conhost.exe processes running.
The scipt has the following lines after the objShell.Run "%comspec% /k perl C:\Users\solarwinds\ntpmonitor.pl >ntpmonitor.txt" line:
- WScript.Sleep 6000
- objShell.SendKeys "Exit"
- objShell.SendKeys "{ENTER}"
Which should exit the cmd prompts, but clearly something is going wrong.
Any ideas?