For a class, I have to pass data from a CGI (written in Perl) script to a Java program. This is easy enough, but I need to make the Java program return the data it finds to the CGI script. Can someone tell me how to do that?
depends on how you are passing the data to the java program. If you are running it as a command line application then you can just print the output from the java program to the standard output device and use backticks (`) to call the java program
Code:
perlvar = `java MyJavaApp param1 param2`
thats how I would go about it, its not the most safe and secure way mind, so make sure you do a damn good job of cleaning any parameters you are passing to the java program so that you dont get random code executed alongside your call to the java program
Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.