Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to insert delay between two lines in Perl 1

Status
Not open for further replies.

zhenning

Technical User
Sep 22, 2005
50
CA
I have a perl script which telnet to Cisco switches and apply commands. I want to insert a 20 seconds delay between the following two lines because it takes time for the switch to do "wri mem":

$session->cmd('wri mem');
$session->cmd("store\n\n\n");

How can I do it? Thanks a lot!

Zhenning

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top