sub ssh_connect { my ($server,$command) = @_; my @lines = qx{$sshbin $server $command}; my $output = join "", @lines; return $output . ""; }