HP3000-L Archives

February 2004, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Charles Finley <[log in to unmask]>
Reply To:
Charles Finley <[log in to unmask]>
Date:
Mon, 16 Feb 2004 08:15:51 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (128 lines)
We've done it a lot of different ways.  The top 2 that I would recommend
are:

1) Use JAVA
2) Use cURL
3) Use Reflection VBA

Lars Appel created an excellent example of JAVA use
http://www.editcorp.com/Personal/Lars_Appel/JavaDemo/telnet/.  We've
actually gone beyond that example and we now use JAVA to control HP 3000
programs in a number of different ways.  For example, we do a store to disc
and then retrieve the store to disk and move the backup to a PC network and
then to DVD's for off-site storage.  We also logon to the HP 3000, extract
the IMAGE schema and data from and IMAGE database and then move the results
to a target machine (UNIX, Windows, Linux, iSeries) and use scripts to build
the replacement RDBMS.  We have several other uses as well. If you have JAVA
skills, I would recommend this approach.

The cURL http://curl.haxx.se/ approach is perhaps simpler in some ways in
that they do not require the installation of so much software.  However, you
will have to use the debug output to get it right.  If I recall the problem
correctly, the HP3000 emits an extra "CR" that the cURL client does not get
from UNIX machines, therefore, you will need to allow for that.  Moreover,
the use of TELNET and cURL are not common, therefore, it is difficult to
find examples of how to do it.

The third case, Reflection VBA, is an approach that we first used a few
years ago.  It is actually very easy to do and works extremely well.  I
provide a fairly detailed explaination, albet with an older version of
Reflection,  at our website http://www.xformix.com/vbexample/index.html.
What you is create a macro with Reflection that is actually a Visual BASIC
program.  We actually then turn around and use Visual BASIC instead of the
builtin VBA to drive the application.  We have also used C++ do do this as
well.  Reflection provides an ActiveX (COM) client that you can use for this
purpose.

Naturally, you can use any programming language you like to do this.  The
biggest problem that I have found is that by simply using a programming
language instead of a library that is designed for dialog with a host the
program is more likely go get hopelessly lost when something goes wrong.
The three methods I have suggested above all use a library that is designed
to do things like wait for a certain kind of response from the host, time
out, etc.  Therefore, you can create a good quality reliable client without
a lot of work on your part.

Hope this helps.

Charles Finley
Transformix Computer Corporation
(760)-439-3146

> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
> Behalf Of Tony Summers
> Sent: Monday, February 16, 2004 7:36 AM
> To: [log in to unmask]
> Subject: Automating TELNET
>
>
> Anyone able to share their experience of Automating the HP3000
> Telnet client
> ?
>
> Background : We have previously bundled the call to the HP3000 FTP client
> inside a subroutine which prepares a plain vanilla file with the script of
> the FTP session we want to invoke.  The subroutine then runs the
> FTP client
> program on the HP (FTP.ARPA.SYS) and re-directs the STDIN to the temporary
> file and also redirects the Stdlist to another temporary file.   The
> subroutine finally inspects the contents of the stdlist to confirm whether
> the session with the remote FTP server was successful !
>
> We've tried to do the same for TELNET, but with little success.
>
>
> The contents of this email are confidential to the intended recipient
> and may not be disclosed. Although it is believed that this email and
> any attachments are virus free, it is the responsibility of the
> recipient to confirm this.
>
> Smith & Williamson Corporate Finance Limited - A member of M&A
> International Inc. http://www.mergers.net Registered in England No.
> 4533970. Authorised and regulated by the Financial Services Authority
> Smith & Williamson Investment Management Limited, Registered No.
> 976145. Authorised and regulated by the Financial Services Authority.
> Smith & Williamson Pension Consultancy Limited - Independent
> Intermediary. Registered No. 3133226. Authorised and regulated by the
> Financial Services Authority.
> Smith & Williamson Unit Trust Managers Limited, Registered No.
> 1934644. Authorised and regulated by the Financial Services Authority.
> Smith & Williamson Limited - A member of Nexia International.
> Registered in England No. 4534022. Regulated by the Institute of
> Chartered Accountants in England & Wales for a range of investment
> business activities.
>
> Registered Office: No 1 Riding House Street, London W1A 3AS
> Telephone: 020 7637 5377 http://www.smith.williamson.co.uk
>
> Nexia Audit Limited - A member of Nexia International. Registered in
> England No. 4469576. Registered to carry on audit work and
> regulated by the Institute of Chartered Accountants in England &
> Wales for a range of investment business activities.
>
> Registered Office: No 1 Riding House Street, London W1A 3AS
> Telephone: 020 7637 5377 http://www.nexiaaudit.co.uk
>
> NCL Investments Limited, Registered No. 1913794.
> Member of the London Stock Exchange authorised and regulated by
> the Financial Services Authority.
>
> Registered Office: Bartlett House, 9-12 Basinghall Street, London
>  EC2V 5NS
> Telephone: 020 7600 2801
>
>
> ________________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
> ________________________________________________________________________
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2