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,
: 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
. 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
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
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