LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2005, 04:59 AM   #1
Darkeye
LQ Newbie
 
Registered: Oct 2005
Location: Philippines
Posts: 4

Rep: Reputation: 0
Question 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.
 
Old 10-13-2005, 06:31 AM   #2
Gort32
Member
 
Registered: Sep 2004
Distribution: Slack!
Posts: 150

Rep: Reputation: 15
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.
 
Old 10-13-2005, 09:42 PM   #3
Darkeye
LQ Newbie
 
Registered: Oct 2005
Location: Philippines
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 10-14-2005, 04:07 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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

Last edited by nx5000; 10-14-2005 at 04:17 AM.
 
Old 10-14-2005, 04:20 AM   #5
Darkeye
LQ Newbie
 
Registered: Oct 2005
Location: Philippines
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, that is what I need but that should be within the Linux Platform. I hope to hear from you soon. tnx.
 
Old 10-14-2005, 04:44 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

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

Look at Xnee
 
Old 10-17-2005, 01:10 AM   #7
Darkeye
LQ Newbie
 
Registered: Oct 2005
Location: Philippines
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass data to a console program with multiple inputs? juanbobo Programming 3 08-18-2005 06:39 PM
"Is there any Yak like apllication for linux" zameer_india Linux - Software 29 11-01-2004 05:36 AM
Pass data between windows agallant Programming 3 10-21-2004 11:29 AM
Command line to search where's the apllication installed mikeccs Linux - Newbie 7 07-23-2004 07:42 AM
Simple IPTables... Want to pass all data from one external IP to an internal IP AdamRankin Linux - Networking 3 04-01-2003 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration