LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to pass data from one apllication to another. (https://www.linuxquestions.org/questions/linux-software-2/how-to-pass-data-from-one-apllication-to-another-372564/)

Darkeye 10-13-2005 04:59 AM

How to pass data from one apllication to another.
 
Please help. I am tasked to create an application that would automate the entry of dat in an application which currently accepts only manual inputs. The big problem is that I am not allowed to touch this software which run in Redhat Linux release 7.2(Enigma). As far as I know this software was created using C language and accepts only manual input. So I need to find a way how to pass variables/data to this software beacuse I am also not allowed to bypass this software. I have create a script in VB which remotes the application and automatically pass values to the software. Can this be done within the linux environment? Please help me because I dont know how or where to start.

Gort32 10-13-2005 06:31 AM

It is very likely that it is not possible. If the program is not designed to read paramaters that are passed to it then you'll be out of luck. If you can get your hands on the source code you might be able to see what they guys in the programming forum can do, but I wouldn't get too hopeful.

Darkeye 10-13-2005 09:42 PM

I have mimic the key stroke using VB and it works. I've remote the system and VB passed the parameters. However, the VB program I made runs in windows and it remotes the software which runs in linux via reflection. I need to create a program that would run in the linux platform. Please help, I am a total newbie when it comes to Linux.

nx5000 10-14-2005 04:07 AM

Hi
If I understood well, you want to automate a manual passing of datas to a program?

If this is the case, you can have a look at Expect. It's done for this.

It's possible to do it in perl with the Expect module, or in tcl/tk (with GUI,..)

If the destination program only accept mouse/keyboard inputs , yes you can automate this, look for
replay X events in google.

There are a few packages that do this, unfortunatly I'm not at home, I don't have the list here. There is at least one very good.
I will edit the post if I find it:
One is called Xnee. It replays so you have to tweak it a bit..


Bye

Darkeye 10-14-2005 04:20 AM

Yes, that is what I need but that should be within the Linux Platform. I hope to hear from you soon. tnx.

nx5000 10-14-2005 04:44 AM

I'm only talking about linux, I just lost too much time programming on Windows.

Look at Xnee

Darkeye 10-17-2005 01:10 AM

Quote:

Originally posted by nx5000
I'm only talking about linux, I just lost too much time programming on Windows.

Look at Xnee

Oh ok, but what/who is Xnee?


All times are GMT -5. The time now is 06:56 PM.