Help with net::telnet

Hi,
    I am trying to get Perl telnet to work on our *nix
boxes, and I am missing something.  I'm sure it is
obvious.  If anyone can help.  I would appreciate it. 
Listed below is the code I use and the login screen
from one of our FreeBSD boxes (sparky).
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/usr/local/bin/perl -w
 
use Net::Telnet ();
 
$username = "sqa";
$passwd = "sqa";
$machine = "sparky";

print $t = new Net::Telnet (Timeout => 10, Prompt =>
'/$username\@$machine\#/');
print $t->open($machine);
print $t->login($username, $passwd);
$t->cmd("p4 sync -f
//info.geodesic.com/eng/pe/tools/bin/...");
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
Trying XXX.XXX.XXX.XXX...
Connected to sparky.geodesic.com.
Escape character is '^]'.
 
FreeBSD/i386 (sparky.geodesic.com) (ttyp1)
 
login: sqa
Password:
Last login: Thu Nov  8 10:41:46 from duke
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991,
1993, 1994
        The Regents of the University of California. 
All rights reserved.
 
FreeBSD 3.5-STABLE (sparky) #6: Sat Nov  4 12:00:07
CST 2000
 
/chicago/sqa/sqa
sqa@sparky# 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
Thanks,

Daryl Hoyt

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
0
daryl_hoyt
11/8/2001 4:57:24 PM
perl.beginners 29388 articles. 4 followers. Follow

1 Replies
273 Views

Similar Articles

[PageSpeed] 13

What's your problem ???

    Walter

> Hi,
>     I am trying to get Perl telnet to work on our *nix
> boxes, and I am missing something.  I'm sure it is
> obvious.  If anyone can help.  I would appreciate it.
> Listed below is the code I use and the login screen
> from one of our FreeBSD boxes (sparky).
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> #!/usr/local/bin/perl -w
>
> use Net::Telnet ();
>
> $username = "sqa";
> $passwd = "sqa";
> $machine = "sparky";
>
> print $t = new Net::Telnet (Timeout => 10, Prompt =>
> '/$username\@$machine\#/');
> print $t->open($machine);
> print $t->login($username, $passwd);
> $t->cmd("p4 sync -f
> //info.geodesic.com/eng/pe/tools/bin/...");
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Trying XXX.XXX.XXX.XXX...
> Connected to sparky.geodesic.com.
> Escape character is '^]'.
>
> FreeBSD/i386 (sparky.geodesic.com) (ttyp1)
>
> login: sqa
> Password:
> Last login: Thu Nov  8 10:41:46 from duke
> Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991,
> 1993, 1994
>         The Regents of the University of California.
> All rights reserved.
>
> FreeBSD 3.5-STABLE (sparky) #6: Sat Nov  4 12:00:07
> CST 2000
>
> /chicago/sqa/sqa
> sqa@sparky#
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Thanks,
>
> Daryl Hoyt
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

0
waltervalenti
11/9/2001 10:50:14 AM
Reply:

Similar Artilces:

Help :-) Beginner in ASP.NET ... Help in Datagrid
Hi , I'm a novice to the ASP.NET/ADO.Net field. I have a datagrid web control in which i show data that is read from a table(assume table has just one field called I_status ). Every row in the datagrid has a button control column called "Update" (created using <asp:ButtonControl ButtonType="PushButton" > ). My case is that upon clicking the Update button in any row, i need to set the column entry for I_Status field (for that particular row in which Update button was clicked) to value 0. I am writing the following code for the gridEvent Handler Sub grdSit...

HELP!HELP!HELP!HELP!HELP!HELP!
I was using powerbuilder4.0 a month ago I decided that migrate it to PB7.0 When Im using 4.0, in datawindows I was using extra colums additional to stores procedure. I mean that for example; stored proc. returns 4 columns. I was using 2 extra columns to modify something from client. But I cant do the same thing in PB7.0. How can I do that??? please help. Gurcan yucel gyucel@infina.com.tr "I was using 2 extra columns to modify something from client." what does this mean that you added to the result set? If so then just goto the SQL and add a param. Then set the...

Help Help Help Help Help Help
------=_NextPart_000_0074_01C2960E.EBE13A30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Can someone please help me. I have installed mysql on Unix Solaris and it works fine I have Perl installed previously which is working and with which i have installed other perlmodules before and are working fine. I have also installed DBI and it works fine with the Sybase drivers which i have installed. When i tried to install the Msql-Mysql-modules-1.2219 drivers i get the following error. # make /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/...

Help Help Help Help
i need to create a crosstab report using Crystal reprot for VS 2003 i face aproblem when i need to order my Fileds by their names my data must be like this Basic Cola Housing Gross Deduction1 Deduction2 Deduction3 Net but when i run my report it give my a not sorted data acutally i have acode field which can i order field using it. but i don't knwo how to do thisSo..................? Select Report tab | |-->Select Record Sort expert Choost the fields you want to sort --Select the corresponding sort direction f...

Help required about NET::TELNET
------=_Part_24326_2033954.1133781558079 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Folks, I have installed the module NET::TELNET from CPAN and when i try to execute the below simple pgm, --------------------****************************----------------------- use Net::Telnet; $telnet =3D new Net::Telnet ( Timeout=3D>100,Errmode=3D>'die'); $telnet->open('202.177.129.37'); $telnet->waitfor('/login: $/i'); $telnet->print('root'); $telnet->waitfor(...

Net::Telnet --help required
------=_Part_19101_13362803.1179309892857 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I am trying to telnet to all m/c for which i haven't set password(only root is a valid user) any body can telnet using root user But when i try to access through perl it <snip> use warnings; use Net::Telnet; my $t = new Net::Telnet (Timeout => 10,Prompt => '/bash\$ $/'); my @line; $t->open("host1"); $t->waitfor('/login:.*$/'); $t->print("root"); $...

Help with Net::Telnet module
I am looking for some help debugging a problem with the Net::Telnet module written by Jay Rogers. Here's the subroutine I am having problems with: sub login { $errmode = 'return'; $hostaddress = 'xxx.xxx.xxx.xxx'; $prompt = '/Sheldon_NS16>/'; $username = 'xxxxxxxx'; $password = 'xxxxxxxx'; $obj = new Net::Telnet ( Host => $hostaddress, Errmode => $errmode, Prompt => $prompt, Timeout => 15, Port => 23 ); $obj->login($u...

help help help help
Name: chef mario Email: chefusa_at_pacbell.net Product: Firefox Summary: help help help help Comments: Heard great reports about Firefox!!! Downloaded & installed Firefox !!!! Lost All my very very valuable BOOKMARKS!!! CAN ANYONE HELP!!!!! All bookmarks were in Internet Explorer Did bookmark transfer to Firefox. Seem the Fox eat all m,y bookmarks Need serious help anyone. chef mario Browser Details: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051025 Firefox/1.5 ...

Help Help Help DataWindow.NET 2.0
Hello, i am using datawindow.NET 2.0 evaluation version my application is working fine using Pbls as source for objects as soon as i change the Pbl to PBD the application gives the error object not found however help says that u can use PBDs kindly tell me that this error is due to evaluation version or there is something wrong i am very worried about this behaviour because i have to report to my project manager for this behaviour of datawindow.NET kindly reply thanks Haroon Yes PBDs will work with the evaluation version. Is this a web forms or Windows Form...

Beginner Help: ODBC/ASP.NET
I'm an absolute beginner, and I need a little help. System DSN name: sampledata (maps to sampledata.mdb in c:\data folder) (Has one table called test, with one column called myfield. I entered four sample rows, so myField contains 1, 2, 3, 4, that's it). I'm using ASP.NET Web Matrix editor. I have dotNET Framework 1.1 installed on my machine. I don't have any other tool. (there's actually a restriction I can't go into right now) I simply need to display the data from the table in the webpage in a table format, in the simplest way possible. Period. Ca...

A beginner in ASP.Net need help
Hi, I am new in ASP.Net. I now doing a sys using VB.Net n SQL Server 2000. I keep getting the same error for my login page, can somebody help me point out where is the problem? I really need help urgently.  Below are the error message I get: Server Error in '/e-library' Application.-------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriate...

HELP HELP HELP
i need help, i use an dbmaker 3.0 server and now i want to use an client to go on it but i dont have an client(i have dbmaker 3.6 but it don't work) who can help me with the dbmaker 3.0 client (tools,files,drivers) email me kelly.kloen@siteways.nl ...

help help help
i wanna know the list of compite time errors related to code correction/programming errors in powerbuilder.thanks lot cenk That's a pretty big request. You want a list of everything it is possible to do wrong in PowerBuilder? What you might want to do is search the solved cases infobase on the Sybase web site. On Tue, 15 Jun 1999 11:50:32 +0300, in powersoft.public.powerbuilder.general cenk KIZILDAG <cenk1536@yahoo.com> wrote: >i wanna know the list of compite time errors related to code >correction/programming errors in powerbuilder.thanks lot > >c...

help help help
after i unload., theni install adaptaive server.......everythings running well but unluckily it cannot start the adaptive server when installing but backupserver and XP server can install and start it Building Adaptive Server "abc", unable to boot server "abc" server "abc" was not connected anyone can help me Was an errorlog created for this ASE in the ASE install directory? If so, what does it say? Zidane wrote: > after i unload., theni install adaptaive server.......everythings running > well > but unluckily it cannot st...

Web resources about - Help with net::telnet - perl.beginners

Resources last updated: 12/11/2015 5:45:06 PM