[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
AW: Running a Shell command from JSP
Is the java source genreated for the jsp ?
Is the class file generated for the jsp ?
(Look in the scratchdir for the files)
Do you habe debug=true in the init args of gnujsp?
-----Ursprüngliche Nachricht-----
Von: Sean Weissensee [mailto:seanweis@bigpond.com]
Gesendet: Freitag, 8. Dezember 2000 11:03
An: gnujsp@career.gjt.org
Betreff: Running a Shell command from JSP
I am tring to run a linux shell command,
Process p = Runtime.getRuntime().exec("/home/sweiss/jvrun/mm");
String[] cmd = {"/bin/sh", "/home/sweiss/jvrun/mm"};
Process p = Runtime.getRuntime().exec(cmd);
mm sends an email.
When I execute this within a JSP no error get thrown but the script does
not run ?
Sean