Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Executing Powershell

3681005Aug 8 2018 — edited Aug 10 2018

How can I execute powershell from Jython.

This code runs w/o erro...but does nothing....

sCommand="test.ps1"

pipe = subprocess.Popen(['powershell.exe', '-NoProfile', '-Command', '"&{' + sCommand + '}"'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Thank you,

po

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2018
Added on Aug 8 2018
7 comments
808 views