On 3/26/07, Dukelow, Don <[EMAIL PROTECTED]> wrote:
I'm using Net::Telnet in my Perl script and I can get through the user
login ok. But when I try to "sudo" to root I can't get there. Any
ideas?
It might be that sudo is (mis-)configured not to allow you root
access. But I suspect you've jus
no difference! Its only after I sudo to root
thaat I have this problem.
Don Dukelow
-Original Message-
From: jm [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 12:01 PM
To: Beginners List
Subject: Re: Telnet question in Perl
i can't find any reference to a "cmw" opt
"@VENDER\n";
Don't work where as they did when I was just loged in as myself. The
Input_log file says the command was exicuted but the array didn't pick
it up.
Don Dukelow
-Original Message-
From: jm [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 5:13 PM
To: b
e "/"s I'm not sure which one you mean but I was tring all kinds
of thinks to get it to work. That is just what I ended up with.
Don Dukelow
-Original Message-----
From: jm [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 4:22 PM
To: beginners@perl.org
Subject: Re: Teln
simplest questions first...
is "sudo" a valid command on that particular system?
if so, is "sudo su -" a valid syntax in that environment?
is "/Password/" a valid prompt being returned by that system?
should the "/"s be a part of the prompt text?
i've never included "/"s in my expected returns u
I'm using Net::Telnet in my Perl script and I can get through the user
login ok. But when I try to "sudo" to root I can't get there. Any
ideas?
My $TELNET = Net::Telnet->new(Timeout => 10,
Prompt => "/$prompt/",
Er
Hi, I am always grateful for your help.
I use CYGWIN on win-2000 with a $ prompt and run
my .pl to telnet to a VxWorks station. When I do it manually this is what I follow:
telnet
open 144.248.176.132
then I get the login prompt which is "VxWorks Login: "
and I enter "marco". then the "
On Monday, August 12, 2002, at 11:21 , Joe Mecklin wrote:
> Thanks Drieux,
>
> You put me on the right track. Working through your suggestion made me
> realize I also needed a sleep between seeing the prompt and sending the
> data (something also required in the Expect script but inconveniently
Thanks Drieux,
You put me on the right track. Working through your suggestion made me
realize I also needed a sleep between seeing the prompt and sending the
data (something also required in the Expect script but inconveniently
forgotten ). I've been able to successfully connect multiple
concur
On Monday, August 12, 2002, at 09:48 , Joe Mecklin wrote:
> I had not tried that because login() requires "login:" or "username:" as
> the prompt (as I read the documentation); my prompt is "User ID:". I
> did go ahead and try it just now and it doesn't work either... doesn't
> even send out th
Prompt => '/\[.*?\]\#/');
> $host->open($hostname);
> $host->login($username, $passwd);
>
> $host->waitfor(/\[.*?\]#/);
>
> #do stuff here!
> }
>
> exit;
>
>
> -Original Message-
> From: Joe
ompt => '/\[.*?\]\#/');
$host->open($hostname);
$host->login($username, $passwd);
$host->waitfor(/\[.*?\]#/);
#do stuff here!
}
exit;
-Original Message-
From: Joe Mecklin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:13 AM
To: [EMAIL
Using Net::Telnet, I'm having trouble getting the server I'm connecting
to to recognize my input to the login prompt. Below is the code so far
(all system/user details have been changed to protect the innocent):
#! /usr/bin/perl
# tnp - TelNet via Perl
# trial program to replace Expect sc
On Friday, May 24, 2002, at 08:12 , Naser Ali wrote:
> Hello everyone,
>
> I have gotten this program from the Net::Telnet readme file, but it does
> not
> work. When I run it it output a message which I don't understand. How can
> I
> give it userid and passwd for the telnet session..?
>
> ==
on Fri, 24 May 2002 15:12:18 GMT, Naser Ali wrote:
> I have gotten this program from the Net::Telnet readme file, but it
> does not work. When I run it it output a message which I don't
> understand. How can I give it userid and passwd for the telnet
> session..?
>
> [...]
> $t = new Net::Telne
Hello everyone,
I have gotten this program from the Net::Telnet readme file, but it does not
work. When I run it it output a message which I don't understand. How can I
give it userid and passwd for the telnet session..?
===Program segment=
#!/usr/bin/perl
use Net::T
16 matches
Mail list logo