How To Run A Shell Script Using Server Side Js
Hi I need to call a shell script from a server side java script and in shell script i need to connect to DB2 database and delete some data in few tables. Can any one help me becau
Solution 1:
Java Script is executed at client side,
Probably you need to make ajax call in order to execute shell script at server.
Use DWR Direct Web Remotting .call a Java method from java script and in that method execute shell script like
rtime = Runtime.getRuntime();
Process child = rtime.exec(/bin/bash);
Post a Comment for "How To Run A Shell Script Using Server Side Js"