From 8656829ea0b6304fe634926be2f54535eb0c9cfd Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 3 Apr 2022 21:45:56 +0200 Subject: [PATCH] remove empty last command --- dell-switch.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dell-switch.pl b/dell-switch.pl index 3c990c8..6ca957b 100755 --- a/dell-switch.pl +++ b/dell-switch.pl @@ -99,7 +99,7 @@ while() { } elsif ( $buff =~ m/Password:/ ) { send_pty "$passwd\n"; $buff = ''; - } elsif ( $buff =~ m/[\n\r]([\w\-\(\)]+)#$/ ) { + } elsif ( $buff =~ m/[\n\r\b]([\w\-\(\)]+)#\s*$/ ) { my $hostname = $1; if ( $buff ) { save_log $ip, $hostname, $command, $buff; @@ -146,4 +146,3 @@ show vlan show running-config show bridge address show interfaces status - -- 2.20.1