mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update shell.js
This commit is contained in:
parent
f22364b2f9
commit
2b27f369bd
10
lib/shell.js
10
lib/shell.js
|
@ -96,16 +96,18 @@ var ShellObject = function() {
|
||||||
console.log("ShellObject.exec() ->", c);
|
console.log("ShellObject.exec() ->", c);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
this.stdout.loadFromFile(this.stdout.path, this.charset);
|
this.stdout.reload(this.charset);
|
||||||
this.stderr.loadFromFile(this.stderr.path, this.charset);
|
this.stderr.reload(this.charset);
|
||||||
|
|
||||||
stdout = (function(s) {
|
stdout = (function(s) {
|
||||||
return s.length > 3 ? s.substring(3) : '';
|
return s.length > 1 ? s.substring(1) : '';
|
||||||
})(this.stdout.read());
|
})(this.stdout.read());
|
||||||
stderr = (function(s) {
|
stderr = (function(s) {
|
||||||
return s.length > 3 ? s.substring(3) : '';
|
return s.length > 1 ? s.substring(1) : '';
|
||||||
})(this.stderr.read());
|
})(this.stderr.read());
|
||||||
|
|
||||||
|
//stdout = this.stdout.read();
|
||||||
|
//stderr = this.stderr.read();
|
||||||
//console.log("[stdout] " + stdout);
|
//console.log("[stdout] " + stdout);
|
||||||
//console.log("[stderr] " + stderr);
|
//console.log("[stderr] " + stderr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user