473,385 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Exange of informations and objects between PERL and JAVA

Hi all,

I would like having more informations on how we could exchange
informations and/or objects between PERL and JAVA.

We have a Java programs that open, maintain and close telnet
connections, for PERL scripts...

Is it possible, to echange the Java telnet session object to PERL
programs ? Or thoses two languages could not exchange objects or such
structure ?

If it's not possible, how could I exchange textual informations
between a Java program and a PERL script on the same UNIX computer ?
Socket, Pipe,... ?

Or mayby, there is another solution ?

Thanks a lot for your help.

Best regards.

Lionel.
Jul 17 '05 #1
2 2911
On 23 Aug 2004 03:51:00 -0700, Lionel wrote:
I would like having more informations


<http://google.com/groups?as_ugroup=comp.lang.java.*&as_usubject=PERL %20JAVA%20exchange>

That is obvious from the excessive
cross-posting to the groups..
comp.lang.java,
comp.lang.java.api,
comp.lang.java.developer,
comp.lang.java.help,
comp.lang.java.misc
...most of which are invalid.

As well as to the multi-posted messages to
comp.lang.java.programmer and comp.lang.java.tech.

Please
a) do not cross post.
<http://www.physci.org/codes/javafaq.jsp#xpost>
b) do not mutli-post
<http://www.physci.org/codes/javafaq.jsp#xpost>
c) choose the single group to which you post
from a list of valid groups, such as..
<http://www.physci.org/codes/javafaq.jsp#groups>

*Note*, follow-ups set to the only appropriate
group in this circumstance, c.l.j.help..

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 17 '05 #2
Lionel wrote:
I would like having more informations on how we could exchange
informations and/or objects between PERL and JAVA.

We have a Java programs that open, maintain and close telnet
connections, for PERL scripts...

Is it possible, to echange the Java telnet session object to PERL
programs ? Or thoses two languages could not exchange objects or such
structure ?

If it's not possible, how could I exchange textual informations
between a Java program and a PERL script on the same UNIX computer ?
Socket, Pipe,... ?

Or mayby, there is another solution ?


You could, maybe, use a FIFO. If the Java application is getting data
via telnet and then using the Perl script to parse the data, you could
just write to a FIFO from the Java application and let the Perl script
read the data coming into the FIFO. This, of course, opens up a host of
issues (such as the fact a FIFO isn't like a regular file, so reading
isn't done the same way as with a regular file - it's done with an
infinite loop).

Just a question for you to ponder .... why not just use one or the other
language? Regular expressions were introduced to Java in version 1.4
and Perl has the Net::Telnet module to open, read, and close telnet
connections. Seems like a lot of extra work if you have the question
you have asked. :-)

HTH

Jim
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John Smith | last post by:
Hello, I have a rather odd question. My company is an all java/oracle shop. We do everything is Java... no matter what it is... parsing of text files, messaging, gui you name it. My question...
1
by: bezeee | last post by:
At my work we are in the process of building a tool to test an XML based API. Basically, XML in and XML out over http. Currently, there are two engines that do all of the schema validations, xml...
0
by: Lionel | last post by:
Hi all, I would like having more informations on how we could exchange informations and/or objects between PERL and JAVA. We have a Java programs that open, maintain and close telnet...
3
by: John Smith | last post by:
Hello, I have a rather odd question. My company is an all java/oracle shop. We do everything is Java... no matter what it is... parsing of text files, messaging, gui you name it. My question...
5
by: John Smith | last post by:
Can someone point me to an example of how to implement and access the kind of object shown below? Most of the examples if found are an object that contains one other object. I need to create an...
2
by: david | last post by:
Hello all, let's me explains my long problem: I'm doing an intranet with a media part. So im must be able to upload files on a ftp server AND have a record of informations about this file and...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.