diff options
| author | Paul Buetow <paul@buetow.org> | 2010-11-07 09:58:56 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-11-07 09:58:56 +0000 |
| commit | 53105fc0560319c722a080009876ccddddce1b20 (patch) | |
| tree | 68f4522137f9a52ea1cfd25bde013b4bb6506b63 | |
| parent | 73bb72852570b00604223bf9f3eb1cb980a44cf0 (diff) | |
missed $host in ssh command
| -rwxr-xr-x | cpuload.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -63,7 +63,7 @@ sub get_remote_stat ($) { my $host = shift; my $bash = "for i in \$(seq $CONF{samples}); do cat /proc/stat; sleep 0.1; done"; - my $cmd = $host eq 'localhost' ? $bash : "ssh $CONF{sshopts} '$bash'"; + my $cmd = $host eq 'localhost' ? $bash : "ssh $CONF{sshopts} $host '$bash'"; loop { my $pid = open2 my $out, my $in, $cmd or die "Error: $!\n"; |
