HP3000-L Archives

August 2000, Week 2

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:
Curtis Larsen <[log in to unmask]>
Reply To:
Curtis Larsen <[log in to unmask]>
Date:
Mon, 14 Aug 2000 10:44:08 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (110 lines)
Mark (and Lars) - Thanks!

These examples will help me out a lot.  I had tried using both Perl and
Python for doing the batch access (since no program will do it) but both
had real problems with the "select()" function.  Perhaps I just don't
have 'em installed correctly (though I thought I followed the docs
pretty well.)  I have Perl 5.005_02 and Python 1.51.

I'll go get the latest copy of Perl and (re)install it.

Thanks again!

Curtis

>>> Mark Bixby <[log in to unmask]> 08/12/00 11:38AM >>>


> Curtis Larsen wrote:
>
> Does anyone know of a way to perform *batch* HP3000 client telnet
access
> to something?

The following Perl code works in a batch job:

#!/PERL/PUB/perl

$username = 'youruser';
$passwd = 'yourpass';

use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
                      Prompt => '/\]\$ $/');
$t->open("yourhost");
$t->login($username, $passwd);
@lines = $t->cmd("/usr/bin/who");
print @lines;

For more info about Net::Telnet (which I have bundled into Perl/iX
5.6.0),
please see:

    http://search.cpan.org/doc/JROGERS/Net-Telnet-3.02/lib/Net/Telnet.pm

- Mark B. (with Perl almost all things are possible)



-----------------------------------------------------
Confidentiality Notice: This e-mail transmission
may contain confidential or legally privileged
information that is intended only for the individual
or entity named in the e-mail address. If you are not
the intended recipient, you are hereby notified that
any disclosure, copying, distribution, or reliance
upon the contents of this e-mail is strictly prohibited.

If you have received this e-mail transmission in error,
please reply to the sender, so that Covance can arrange
for proper delivery, and then please delete the message
from your inbox. Thank you.
begin 644 TEXT.htm
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(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