profesorfalken / jPowerShell

Simple Java API to interact with PowerShell console
Apache License 2.0
215 stars 83 forks source link

fails on linux (CentOS) #37

Closed odedm closed 6 years ago

odedm commented 6 years ago

powershell is installed as /usr/bin/pwsh

seems that in PowerShell.java it should be : pb = new ProcessBuilder(powerShellExecutable,"-nologo","-noexit","-Command", "-"); instead of : pb = new ProcessBuilder(String.format("%s -nologo -noexit -Command -", powerShellExecutable));

profesorfalken commented 6 years ago

Thanks for this feedback. I will try to fix it quickly.

profesorfalken commented 6 years ago

Ok, I have changed it. You can set your dependency tool to 2.0-SNAPSHOT or just download and replace the jar directly: https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/2.0-SNAPSHOT/

Can you check it and tell me if it works?

Thank you

odedm commented 6 years ago

Hi, It works.

Thanks, Oded

From: JGA notifications@github.com Sent: Monday, April 30, 2018 8:21 PM To: profesorfalken/jPowerShell jPowerShell@noreply.github.com Cc: Oded Mass oded.mass@cyber-observer.com; Author author@noreply.github.com Subject: Re: [profesorfalken/jPowerShell] fails on linux (CentOS) (#37)

Ok, I have changed it. You can set your dependency tool to 2.0-SNAPSHOT or just download and replace the jar directly: https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/2.0-SNAPSHOT/

Can you check it and tell me if it works?

Thank you

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/profesorfalken/jPowerShell/issues/37#issuecomment-385467359, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADcuu4DLyWZgPvrfUSX5ANlyDNLEzRrAks5tt0gFgaJpZM4TsNcz.