View Full Version : [Java][Perl]How do i run a Perl script from java?
Groombro
12-15-2005, 03:48 PM
I have a java program designed to search websites for links, the user interface is java but the search function is Perl. I can't find anyway to start the Perl script from the java code without using the Microsoft .NET framework. I also need to pass the Perl script the name of the first file it's to search. Can anybody help?:confused:
You're in the wrong forum, mate. Java, despite the semantic similitude, is not shorthand for Javascript. But if you really do mean JS and not Java, you'll have to clearer (well, for me anyway) about what it is you're trying to achieve. Providing a code example would be a good starting point.
tricolaire
12-16-2005, 12:04 PM
you run other programs from within java using a newProcess command
System.newProcess(<name of perl script>);
the name of that method might be off, I'd check the System API first
I do agree with the previous post though, you most likeley are using javascript, rather than JSP
the above only works for java (in a web services case, JSP).
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.