Telnet.pm

2003-08-15 Thread Vidal, Christopher, SOLCM
The group helped me to get this small snippet working .. and it works good for when I need to telnet to multiple and/or all servers. #! /opt/perl5/bin/perl # example using Telnet.pm to servers require 'Telnet.pm'; # script server ip username password $t = new Net::Telnet Timeout = 5,

RE: Telnet.pm and Unix prompt

2003-07-28 Thread Vidal, Christopher, SOLCM
: Telnet.pm and Unix prompt Chris, --- Vidal, Christopher, SOLCM [EMAIL PROTECTED] wrote: Using the Telnet.pm mod, How do I put my unix prompt into the PROMPT scalar ? My unix profile prompt is : uid=`whoami` system=`hostname` PS1=$system $uid \\!: #! /opt/perl5/bin/perl require '/tools

RE: encrypt

2003-07-25 Thread Vidal, Christopher, SOLCM
. also a just starting with perl $wip = \e[2J; print $wip; This will clear the screen but I have been trying to find out why it doesnt place the cursor at 0,0 I was considering $wip = `qx(clear)`; instead but this doesnt work either. -Original Message- From: Boon Chong

Telnet.pm and Unix prompt

2003-07-25 Thread Vidal, Christopher, SOLCM
Using the Telnet.pm mod, How do I put my unix prompt into the PROMPT scalar ? My unix profile prompt is : uid=`whoami` system=`hostname` PS1=$system $uid \\!: #! /opt/perl5/bin/perl require '/tools/mns/bin/Telnet.pm'; # $username = wannabperlguy ; $passwd = needslotsahelp; $t = new

RE: Create Perl Menu

2003-07-23 Thread Vidal, Christopher, SOLCM
I too am trying to learn perl and its very hard to get answers to topics you dont understand. I can lead you in the right direction just as long as you dont want gui output ... Theres probably a better way then this ... however .. 1. use the print (or better yet printf) command to print out