Click here to get back home

problem in telnet using perl

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
problem in telnet using perl Srikanth M 12-27-2007
Posted by Srikanth M on December 27, 2007, 11:22 pm
Please log in for more thread options
im a beginner in perl. At present im working on automation of testing.

i wrote a script to add a record in a remote system and to check the
contents of the record whether it is correctly added or not.

part of my code is like this
.
.
.
#upto know the record is added successfully when i checked it manually

$t->input_log("/home/user/work/show-object");

$match='/config\/proxy\/pop3/'; #this is where the policy added in the
remote system.

$t -> cmd(Prompt => $match, String => "showtranspolicy -ruleid $ruleid
\n",Timeout =>10); #this will list the contents of the record
($ruleid) which i added earlier

sleep 1;
open($fh2, "</home/user/work/show-object") or die "could not open show-
object: $!\n";

&chkPara; # this will check the contents of the record based on the
logfile contents

$t->input_log("");

close($fh2);

#system("rm -rf /home/user/work/show-object");

&telnetclose();

My priblem is nothing is present in the logfile show-object. Can
anybody tell me where the problem

Thanks i advance,

srikanth

Similar ThreadsPosted
net::telnet problem July 23, 2004, 6:46 pm
Problem with Net::Telnet October 20, 2005, 4:19 pm
Telnet Problem December 8, 2006, 5:06 am
Net:Telnet problem with print October 20, 2005, 5:04 pm
Telnet problem -getting timed out error - April 18, 2006, 9:15 am
reading from Net::Telnet input string problem June 16, 2006, 1:17 pm
Net::Telnet retrieving temporary text problem November 6, 2006, 3:32 am
Telnet from perl September 23, 2004, 2:12 pm
Net::Telnet not working with perl 5.8.5 November 15, 2005, 2:48 am
getting output of telnet from perl April 6, 2006, 6:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap