Skip to content

shelljs.exec hangs when password it's asked #716

@napcat

Description

@napcat

Node version (or tell us if you're using electron or some other framework):

v6.10.2

ShellJS version (the most recent version/Github branch you see the bug on):

Most recent: 0.7.7

Operating system:

Windows 10

Description of the bug:

I have a node js script and I'm trying to exec a command to get some facebook hash keys.
When the command runs it needs the user to input the password, but the script hangs and stop runnning. The password action does not show any chars that are being written.

Example ShellJS command to reproduce the error:

var path          = require('path');
var os              = require('os');

var homedir = os.homedir();

var command = 'keytool -exportcert -alias androiddebugkey -keystore ' 
+ path.join(homedir, '\\.android\\debug.keystore') 
+ ' | openssl sha1 -binary | openssl base64';

shelljs.exec(command);

Metadata

Metadata

Assignees

Labels

duplicateexecIssues specific to the shell.exec() API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions