Is there any way where you can pass values from the objects in java to the perl program?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   john_lucas
Posted On:   Monday, August 13, 2001 12:40 PM

I have a stand alone application which take the inputs from the user. i have a perl program which works fine on its own.
But is there any way where i can take the inputs from that stand alone java application and pass the inputs to this perl program to do some processing?

Re: Is there any way where you can pass values from the objects in java to the perl program?

Posted By:   Christopher_Pickslay  
Posted On:   Monday, August 13, 2001 02:09 PM

Yes, you can use Runtime.exec() to execute your perl program, write to its stdin and read from its stdout. See http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html for a description of how to do this, as well as some common pitfalls.
About | Sitemap | Contact