Execute perl in Java

Joined
Jun 30, 2010
Messages
1
Reaction score
0
hello,
I'm trying to execute a perl script in a java Web Service. The perl script works fine, but when I try to integrate it in a WS,it shows nothing. the code is :

String C="perl ro3.pl -in ..\\in -out ..\\out";
Process p = Runtime.getRuntime().exec(C);
p.waitFor();
String A="..out\\text.todo.out";
return readFileAsString(A);

when I test the WS the output file in empty.If anyone can help me, I'd be grateful.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top