I want to run a shell script on my node.js server, but nothing happened...
childProcess.exec('~/./play.sh /media/external/' + req.params.movie, function() {}); //not working
Another childProcess works perfect, but the process above won't.
childProcess.exec('ls /media/external/', movieCallback); //works
If I run the script in terminal, then it works. Any ideas? (chmod +x is set)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…