atom-archive / node-runas

Run command synchronously (with Administrator privilege)
MIT License
47 stars 20 forks source link

Add "catchOutput" option #14

Closed zcbenz closed 9 years ago

zcbenz commented 9 years ago

When the catchOutput option is specified to true, output of the command will be caught and exitCode, stdout and stderr will be returned.

@benogle On OS X we can not get stderr if admin is true, because of the limitation of ExecuteWithPrivileges API.

Fixes #13.

benogle commented 9 years ago

Awesome!

benogle commented 9 years ago

On OS X we can not get stderr if admin is true, because of the limitation of ExecuteWithPrivileges API.

That's fine

zcbenz commented 9 years ago

runas@1.1.0 has been published for this.

benogle commented 9 years ago

:heart: