code here:
var sys = require('sys');
var exec = require('child_process').exec;
exec('sh ~/public/markdoc/depoly.sh', function(error, stdout, stderr) {
sys.puts(stdout);
if (error != null) {
console.log(error);
}
});
gives the error:
{ [Error: Command failed: sh: /home/users/zhangxuan06/public/markdoc/depoly.sh: No such file or directory
] killed: false, code: 127, signal: null }
Can someone tell me why? Big Thx~
您编写了depoly
,但您可能打算deploy
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.