Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get any output on linux #1

Open
ed-ilyin opened this issue Sep 22, 2016 · 2 comments
Open

can't get any output on linux #1

ed-ilyin opened this issue Sep 22, 2016 · 2 comments

Comments

@ed-ilyin
Copy link

I'm trying to run following code on the powershell 6 under ubuntu:

import { shell, pipe, toJson } from 'windows-powershell'

function process (io) {
  const { json, stdout, stderr } = io
  // json -> { name: 'regedit.exe' }
  // stdout -> raw output from the cli
  console.log('io =',io)
}

const cmd = pipe('get-process', 'get-random')
shell(toJson(cmd)).then(process)
shell(cmd).then(console.log)

console.log('begin')

and only getting "begin" as the output.

maybe it is important: in linux there is "powershell" command, but not "powershell.exe".

@queckezz
Copy link
Member

queckezz commented Oct 11, 2016

Yea this package was specifically intended for the use on windows. Do you know the steps to make it compatible with linux aswell? I don't have a virtual machine with linux install atm so I can't test this.

./index.js#L7 is where powershell gets spawned.

@ed-ilyin
Copy link
Author

the difference i know is that the on linux there is no powershell.exe - you have to use just powershell to run it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants