- 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!
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!