Menu

#4193 [HHQ-4052] Running a powershell script through HQ's script e

Bug
open
None
3
2012-10-09
2010-06-11
No

http://jira.hyperic.com/browse/HHQ-4052
This comes from support issue: SUPPORT-7995



When trying to run a windows powershell script from hq, the process will hang until the timeout is reached.



It seems that powershell first reads all input from it's input stream before continuing. So after a bunch of testing the only solution was to close the outputstream on the process. (i.e proc.getOutputStream().close())



I do not believe this will cause any problems with the ExecutableProcess, since we are not taking input from a user in this case, but I was not sure if this could affect anything else that uses ExecutableProcess.


Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.