i've a problem tryin to run exec on a jsp, i tryed using java files and jsp and both doesnt work. the source its! mport java.io.*; public class exec { public static void main(String[]argv) { try { Runtime rt = Runtime.getRuntime(); Process prcess = rt.exec("/bin/sh","-c","/APPS/webcust/car/docs/me/apis/charlie.sh"); } catch (Exception e){} } } any idea about whats the problem or sugestion to execute the same on a simple JSP file? thanks
the sh file its just a test, it creates a txt file with the date, thats all, but its the first step before the real one (execute a c program, who execute various programs and updates on 4 db's, etc). i dont recipe any error msg, just the sime HTTP 500 Internal Server Error The page cannot be displayed thanks
I'm somewhat puzzled that the source you show is definately not a JSP - it's just a regular Java command-line class. If you are expecting a server to execute this file you are likely to be disappointed. Do you have any other working jsp files to look at?