Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: lAUNCH perl script from java
12-22-2008, 11:17 AM #1
- Join Date
- Dec 2008
- Thanked 0 Times in 0 Posts
lAUNCH perl script from java
Hi all I am new in this foro,
First of all, to say hello.
now, I am trying to launch a Perl code from java code,Actually It works and the perl script is running(when i save the script in my local machine,) but when I try to launch it from the server, it does not work, and Tomcat reports me this error.
 response status done for 689374
Can't open perl script "Http://localhost:8080/ChatOS/web_service_demo.pl": Invalid argument
...BugzillaChatosServlet finished sucessfully
and this is the code that sends the perl script
Runtime runtime = Runtime.getRuntime();
//String param_perl = "perl C:\\web_service_demo.pl --uri http://mordac.atosorigin.es/bugzilla-3.0.3/xmlrpc.cgi --bug_id "+j;
//CON EL DE LA LINEA DE ARRIBA FUNCIONA , CON EL DE ABAJO NO******
String param_perl = "perl http://localhost:8080/ChatOS/web_service_demo.pl --uri http://mordac.atosorigin.es/bugzilla-3.0.3/xmlrpc.cgi --bug_id "+j;
Process process = runtime.exec(param_perl);
Does somebody knows what should I do , any piece of advise will be great for me,
12-23-2008, 02:51 PM #2
have u tried giving the path to the perl script instead of the url? is the path set for perl?
You never have to change anything you got up in the middle of the night to write. -- Saul Bellow