fork(1) download
  1. (function() {
  2. var args = ['C:\Windows\System32\notepad.exe', window.location];
  3.  
  4. var process = Components.classes['@mozilla.org/process/util;1'].createInstance(Components.interfaces.nsIProcess);
  5.  
  6. var executable = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsIFile);
  7.  
  8. executable.initWithPath(args.shift());
  9. process.init(executable);
  10. process.runAsync(args, args.length);
  11. })();
Runtime error #stdin #stdout #stderr 0.01s 30432KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:2:0 ReferenceError: window is not defined