Powershell not exiting when called by SAB
Posted: March 7th, 2010, 3:51 am
I use some postprocessing powershell scripts (called by a bat file), and when they are called by SABnzbd in postprocessing they never exit. If I grab the commandline being executed with process explorer, and paste it into cmd, it runs perfectly fine.
The little output log added (thank you devs!) when I kill the script just shows up to the powershell execution and nothing afterward. Even if I modify the powershell script to just run dir, it will still hang. The strange thing is this worked just fine on my Windows 7 computer. Not sure how to debug this. Would appreciate any help.
Version: 0.5.0
OS: Windows Server 2008 R2 Standard
EDIT: This seems to be a common problem with powershell in general when being called by other programs. /EDIT
EDIT2: Screw Powershell I just rewrote everything in C#. /EDIT2
Thanks,
Mills
The little output log added (thank you devs!) when I kill the script just shows up to the powershell execution and nothing afterward. Even if I modify the powershell script to just run dir, it will still hang. The strange thing is this worked just fine on my Windows 7 computer. Not sure how to debug this. Would appreciate any help.
Version: 0.5.0
OS: Windows Server 2008 R2 Standard
EDIT: This seems to be a common problem with powershell in general when being called by other programs. /EDIT
EDIT2: Screw Powershell I just rewrote everything in C#. /EDIT2
Thanks,
Mills