Archived

This topic is now archived and is closed to further replies.

Need help With Interfacing. . .

This topic is 5499 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Sorry, I was kinda writing quick. OK, I work at a junkyard in inventory. There is a unix server that I log into using a propritary Terminal Emulator. After the program is open, all I need it to do (again, in C++ or VB, i frankly don''t care which, either will work for me) is read a data file, enter that, and then hit 3 keystrokes in the terminal program. What I am wondering is how to interface with the program to do the keystrokes. . . I havn''t programmed in about 2 years, and even then I only took three years of it, so please be nice

Share this post


Link to post
Share on other sites
you''re still being unclear

are you wanting to write a program that you can use when you login over the terminal emulator? i think that''s what you want. anyway, you need to write a C/C++ program (VB doesn''t work on UNIX) and compile it on the UNIX server probably using gcc. I assume you know C/C++ already? if not Pearl is also a really easy way to go on UNIX machines.

erm, look around for a really basic C/C++ tutorial (i''d go with straight C if you''re working on UNIX b/c you can be sure that gcc is installed with all the appropriate libraries). particularly you want file i/o & keyboard i/o. with cin (stdlib.h i think) you''ve got really basic and easy to program keyboard input.

try this tutorial:
http://www.cs.cf.ac.uk/Dave/C/CE.html

also look around on Google for "c tutorial" or the likes.

i''d look into shell scripting and pearl script as well since that will most likely result in the simplest programs to write. higher activation energy to start your learning reaction though as you don''t already know either of those.

FYI, you can''t really run a program on your own desktop and interface through the terminal emulator to control the UNIX machine.

-me

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Palidine
FYI, you can''t really run a program on your own desktop and interface through the terminal emulator to control the UNIX machine.



actually, if it''s a "standard", off-the-shelf emulator package, like Reflections, Hummingbird, etc., you can, as they typically have their own API that you can program to.

Share this post


Link to post
Share on other sites