[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby and 3270 terminal emulation

Daniel Berger

3/21/2008 6:17:00 PM

Hi all,

Are there any 3270 screen scraping libraries out there for Ruby? And
do you have any suggestions on how to write one?

http://en.wikipedia.org...

Regards,

Dan


5 Answers

Gennady Bystritsky

3/22/2008 1:15:00 AM

0

Some time ago when I needed to support 3270, I ended up using s3270 from ht=
tp://x3270.bgp.nu/ -- this provides a scripting access to 3270 protocol. Yo=
u send 3270 requests to its standard input and it spits info and screen dum=
ps to the standard output. In my TSC-ACT project at http://sourcef...
projects/tsc-act I have 3270 integration via s3270, however there's no offi=
cial release yet (no easy installation and documentation yet). You can see =
an example of how I interact with s3270 via IO::popen() in here: http://tsc=
-act.svn.sourceforge.net/viewvc/tsc-act/trunk/lib/tsc/session/s3270-stream.=
rb?revision=3D17&view=3Dmarkup

Please contact me off-list if you are interested in more details.

Gennady.

> -----Original Message-----
> From: Daniel Berger [mailto:djberg96@gmail.com]
> Sent: Friday, March 21, 2008 11:17 AM
> To: ruby-talk ML
> Subject: Ruby and 3270 terminal emulation
>
> Hi all,
>
> Are there any 3270 screen scraping libraries out there for Ruby? And
> do you have any suggestions on how to write one?
>
> http://en.wikipedia.org...
>
> Regards,
>
> Dan
>
>
>

Daniel Berger

3/22/2008 3:32:00 AM

0



On Mar 21, 7:14 pm, Gennady Bystritsky <Gennady.Bystrit...@quest.com>
wrote:
> Some time ago when I needed to support 3270, I ended up using s3270 fromhttp://x3270... this provides a scripting access to 3270 protocol. You send 3270 requests to its standard input and it spits info and screen dumps to the standard output. In my TSC-ACT project athttp://sourceforge.net/project... have 3270 integration via s3270, however there's no official release yet (no easy installation and documentation yet). You can see an example of how I interact with s3270 via IO::popen() in here:http://tsc-act.svn.sourceforge.net/viewvc/tsc-act/trunk/lib......
>
> Please contact me off-list if you are interested in more details.
>
> Gennady.

Thank you for this. I will definitely take a look.

Dan

William James

3/22/2008 6:46:00 AM

0

On Mar 21, 12:16 pm, Daniel Berger <djber...@gmail.com> wrote:
> Hi all,
>
> Are there any 3270 screen scraping libraries out there for Ruby? And
> do you have any suggestions on how to write one?
>
> http://en.wikipedia.org...
>
> Regards,
>
> Dan

If your emulator is Attachmate Extra, it has a built in
macro language that can read the screen and type in
data. This language can be invoked from Ruby or from
the DOS-prompt with the command "ebrun".

Erik Veenstra

3/22/2008 10:43:00 AM

0


Back in my mainframe days, I used the HLLAPI (aka WHLLPAI, aka
HLLAPI32) interface of the terminal emulators to interact with the
mainframe. Worked beautifully...

If you're interested, I'm willing to extract the low-level code from
my old projects.

gegroet,
Erik V. - http://www.erikve...

Sean O'Halpin

3/22/2008 11:19:00 PM

0

On Sat, Mar 22, 2008 at 10:42 AM, Erik Veenstra <erikveen@gmail.com> wrote:
>
> Back in my mainframe days, I used the HLLAPI (aka WHLLPAI, aka
> HLLAPI32) interface of the terminal emulators to interact with the
> mainframe. Worked beautifully...
>

Ah yes! HLLAPI days ;)

Regards,
Sean