From 15e9ba3c2f7f33d52fd7d2c7c672135794b3b069 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 11 Dec 2016 19:03:58 +0100 Subject: [PATCH 1/1] add SSH="ssh hostname " ./ifstat.pl to run remotly --- ifstat.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifstat.pl b/ifstat.pl index 8ea8534..3f322b7 100755 --- a/ifstat.pl +++ b/ifstat.pl @@ -22,7 +22,7 @@ sub update_time { # FIXME add -A to pull interfaces if they go up and down # -l loopback # -a all -my $cmd = qq{ifstat -s '$community@#$host' -a -l -b -n -t 1}; +my $cmd = qq{$ENV{SSH}ifstat -s '$community@#$host' -a -l -b -n -t 1}; warn "# $cmd\n"; open(my $ifstat, '-|', $cmd); -- 2.20.1