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

shell.exec - read internal variable #260

Closed
eduardohmaciel opened this issue Dec 16, 2015 · 1 comment
Closed

shell.exec - read internal variable #260

eduardohmaciel opened this issue Dec 16, 2015 · 1 comment

Comments

@eduardohmaciel
Copy link

Hello, someone already managed to read an internal variable in shell.exec?

***example -- nodejs

var shell = require('shelljs');
var ssid = atak;
var password = 554032;

shell.exec('wpa_passphrase "$ssid" "$password" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf', {async:true});

does not work that way?

@eduardohmaciel
Copy link
Author

up and running!

shell.exec('wpa_passphrase "'+ssid+'" "'+password+'" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf', {async:true});

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

1 participant