I'm running a shell script on my node.js server. Now, one childProcess works perfectly:
childProcess.exec('ls /media/external/', movieCallback); 
But the other process just won't work:
childProcess.exec('~/./play.sh /media/external/' + req.params.movie, function() {}); 
Here's the error I get:
/bin/sh: 1: /root/./play.sh: not found 
Also, running the script in terminal, it works just fine. I've double-checked that chmod +x is set.
Any clues on what could be going wrong?
Do tell! Thanks in advance.