i can't find any reference to a "cmw" option so i'll assume that's a typo for "cmd".
is the typo only in the email or also in your script? beyond that, the only difference i see between your script and the net::telnet documentation is your use of single-quotes rather than double-quotes around the uname argument. since you're not passing variables i wouldn't think that would matter but you might try double-quotes and see. i've always used double-quotes without any problem, but i've never used the cmd option so i'm not familiar with any quirks specific to that part. On 3/27/07, Dukelow, Don <[EMAIL PROTECTED]> wrote:
Thank you Jim for your help, hopefully I'll be able to keep it streat. Now I have another problem once I get sudo to root commands like My @VENDER = $TELNET->cmw('uname'); Print "@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: beginners@perl.org Subject: Re: Telnet question in Perl the "/"s i was referring to are in your 'waitfor' texts - Password shows '/Password/' rather than 'Password' -> waitfor('/Password/') root shows '/root/' rather than 'root' -> waitfor('/root/') if that doesn't point to the problem, i can't help any further. hopefully someone else can. On 3/26/07, Dukelow, Don <[EMAIL PROTECTED]> wrote: > > Yes I can manualy sudo using the format shown all the time. What is > returned is Password: sorry about the collen when I do it manualy. As > for the "/"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 >