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

in using this tool #6

Open
abedzaben28 opened this issue Dec 14, 2017 · 6 comments
Open

in using this tool #6

abedzaben28 opened this issue Dec 14, 2017 · 6 comments

Comments

@abedzaben28
Copy link

abedzaben28 commented Dec 14, 2017

  • does it allow to run command from windows to windows? i mean i'm running app on windows that shall run some commands on another machine (the other one is windows also)
  • if the answer of the previous point is yes, i got this error,and don't how shall handle it, please advise:
    err --> Error: Exit code: 4294967290.
    at ChildProcess. (D:\Projects\node_modules\winexe\lib\winexe.js:223:22)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:927:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
    login.component.ts:106 stdout --> nothing
    login.component.ts:107 stderr --> nothing
@NAlexandrov
Copy link
Member

NAlexandrov commented Dec 14, 2017

Does the file D:\Projects\node_modules\winexe\bin\paexec.exe exist?

@abedzaben28
Copy link
Author

yes it is

@NAlexandrov
Copy link
Member

NAlexandrov commented Dec 14, 2017

Try to execute the file D:\Projects\node_modules\winexe\bin\paexec.exe from the terminal. No errors?

@abedzaben28
Copy link
Author

  • Nickolay i sent you email at your gmail ([email protected]) please consider it
  • yes no errors it gave me log descriptions started with:
    PAExec v1.26 - Execute Programs Remotely
    Copyright (c) 2012-2013 Power Admin LLC
    www.poweradmin.com/PAExec

@abedzaben28
Copy link
Author

Hi,
i the issue fixed in my environment here, but i want to pay the attention for something very important in the winexe module itself, where the module need to enhance its way in reporting the errors because the following winexe error message was not clear at all meanwhile the paexec reported access denied issue, just you need to report what pasexec reporting:

Error: Exit code: 4294967290.
at ChildProcess. (D:\Projects\node_modules\winexe\lib\winexe.js:223:22)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:927:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

@NAlexandrov
Copy link
Member

WinExe script just simple translate messages from spawn process of paexec to nodejs process and don't parse the errors or results. But I will think about it.

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

No branches or pull requests

2 participants