Execute shell scripts [CS3 JavaScript]


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // define your shell-file
  2. // after that assign manually the x-flag to the file
  3. var shellscript = new File("./my-shell-script.sh");
  4.  
  5. // x-flag added
  6.  
  7. // run shell sciprt file
  8. shellscript.execute();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.