Comments (12)
Does it work when running the command directly?
// @gingermusketeer any thoughts?
from grunt-shell.
Yeah when i run command directly all works fine..
Le 12 déc. 2013 à 12:26, Sindre Sorhus [email protected] a écrit :
Does it work when running the command directly?
// @gingermusketeer any thoughts?
—
Reply to this email directly or view it on GitHub.
from grunt-shell.
I had a quick look. The behaviour does appear to have changed in the latest version since this was added. However even going back to when this was merged has issues.
I am wondering if child_process.exec has changed in recent versions of node (i tested it on v0.10.21). Does anyone know if this is the case?
from grunt-shell.
I don't know if child_process.exec
has changed but i'm using v0.10.22
, in changelog we can see:
child_process: don't assert on stale file descriptor events (Fedor Indutny)
changelog
from grunt-shell.
any news?
Reproduce?
from grunt-shell.
Does this work?
node -e "var exec = require('child_process').exec;var cp = exec('php artisan database:proprio:zero --no-ansi', function (err, stdout, stderr) {console.log(err, stdout, stderr);});process.stdin.pipe(cp.stdin);"
from grunt-shell.
mmmh,
I get this:
`null 'What is your name?' ''``
When i launch command i see nothing but when i press enter i see the question and the response is set to null.
Maybe a flush in php?
from grunt-shell.
same problem here.
trying to automate "jarsigner":
androidJarSigner : {
options : {
stdout : true,
stdin : true
},
command : function(keystore, apk) {
var querystring = require('querystring');
return 'jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 ' +
'-keystore ' + querystring.unescape(keystore) + ' ' + querystring.unescape(apk) + ' ' +
'alias_name';
}
}
if i call task directly all runs fine, but if its called in gruntfile script with grunt.task.run the user input will not be recognized
from grunt-shell.
Can you try out ff9753b ?
from grunt-shell.
@sindresorhus now it works. thx!
from grunt-shell.
great, that fixes things!
from grunt-shell.
fixed in 0.6.2
from grunt-shell.
Related Issues (20)
- add '/node_modules/.bin' to the path for executing local commands HOT 1
- error when command has “^” HOT 1
- "Iron-node" command is not working HOT 1
- Keep receiving TypeError: Path must be a string. Received undefined HOT 1
- This socket is closed HOT 2
- SyntaxError: Use of const in strict mode. shell.js:2 HOT 4
- SyntaxError: Use of const in strict mode; shell.js:2 HOT 2
- Bash pattern matching does not work properly with git bash
- Problem with paths added HOT 2
- Conflict with grunt-cli 1.3.x HOT 1
- Problem with chalk dependency in 3.0.0
- bug(commands): Travis Command Line Client
- Update strip-ansi to prevent moderate npm audit issue HOT 2
- time for esm HOT 3
- Print command to terminal for verification
- Stdin does not support read HOT 1
- Each command failOnError callback ? HOT 1
- Git-command stuck HOT 8
- Invalid version: "0.5" HOT 1
- does not work in 1.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-shell.