Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    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.
    [3] 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,

    Cheers
    Diego

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •