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

getting different result from terminal and with shelljs #769

Closed
anupamvijayvergia opened this issue Sep 7, 2017 · 2 comments
Closed

getting different result from terminal and with shelljs #769

anupamvijayvergia opened this issue Sep 7, 2017 · 2 comments

Comments

@anupamvijayvergia
Copy link

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

v6.11.3

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

0.7.8

Operating system:

Ubuntu 16.04 (AWS instance)

Description of the bug:

I'm trying to execute a shell script from node js file. When I'm executing this script from terminal I'm getting different result from what it returns when executed from nodejs using shelljs

Example ShellJS command to reproduce the error:

var shell = require('shelljs');
shell.exec('./alphanet.sh status', function(code, stdout, stderr) {
  console.log('Exit code:', code);
  console.log('Program output:', stdout);
  console.log('Program stderr:', stderr);
});

here's the link for the script https://github.com/tezos/tezos/blob/alphanet/scripts/alphanet.sh

@anupamvijayvergia anupamvijayvergia changed the title getting different result from terminal and from shelljs and node getting different result from terminal and with shelljs Sep 7, 2017
@nfischer
Copy link
Member

nfischer commented Sep 8, 2017

@anupamvijayvergia is this still an issue?

@anupamvijayvergia
Copy link
Author

@nfischer it was related to this #680 thanks for checking in!

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