Home
TeamSite
Run Perl command ( iwwft_compile.ipl ) through java runtime.exec
sac_20
Hi,
I am trying to run command through java runtime function, however its not giving the expected result. Running the command like:
String command = "E:/Interwoven/TeamSite/iw-perl/bin/iwperl.exe E:/Interwoven/TeamSite/bin/iwwft_compile.ipl " + "-o E:/Interwoven/TeamSite/local/logs/jobspec_test.xml " +"< E:/Interwoven/TeamSite/local/logs/WF_input_QA.xml";
Process process = Runtime.getRuntime().exec(command);
However when I run this command directly through command prompt it runs properly and create the files at the specified folder.
Also, when I try to run any other simple perl command through java program it run's fine, I think its the problem with above mention Command creation in the form of String, I have tried with different slash option while formatting the command,however its still run unsuccessfully through java program.
Any help will be of great use for running the mention command through java runtime.exec() function.
Thanks
Find more posts tagged with
Comments
iw_store
http://www.velocityreviews.com/forums/t129578-execute-perl-in-java.html
Above link might help you!
sac_20
Hi Sir,
Thanks a lot for the provided link. It works and you made my day.
I have to run command like :
"cmd.exe /c E:/Interwoven/TeamSite/iw-perl/bin/iwperl.exe -S " +
"E:/Interwoven/TeamSite/bin/iwwft_compile.ipl -o " +
"E:/Interwoven/TeamSite/local/logs/JobSpecification.xml < " +
"E:/Interwoven/TeamSite/local/logs/SpecificationInput.xml";
Thanks Again