tulic , i tried that but the else block is not executing. i can explain the behavior of the cisco device if a particular command is not present... if i telnet into cisco device it will show as
here at this prompt i want to check one command i.e2960#
if the configuration is not present then it will show as same2960#sh run | in ntp
so at this time the in array @output doesn't contain anything but i dont know why the else block is not executing2960#
In reply to Re^2: Empty string checking in output
by Kumar Mantri
in thread Empty string checking in output
by Kumar Mantri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |