On Monday 03 October 2005 4:46 pm, Jason Madsen wrote:
> The flr3list.txt INFILE is just a list of IP addresses that the script uses
> to telnet in to my Cisco switches. This script, although I'm sure is full
> of at least minor errors, seems to work great for the most part. The one
> major downfall is that when a particular cisco switch is down or doesn't
> support the cmd I'm running (ie. 'sho mod' is only a valid cmd on modular
> switches) the script gets "stuck" for a moment and then closes instead of
> trying the next switch/IP on the list. Thanks for any advice you may have.

  Wrap the section of your code that does the telnet session in 
an eval, that way you can test that the session failed, yet continue
on with the next ip number in the file.

  Scott

-- 
POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/
Linux 2.6.11.4-21.9-default x86_64
SuSE Linux 9.3 (x86-64)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to