for my $host (@hosts) { $pssh->add_host($host, user => $user); } $pssh->push('*', 'command', { stderr_to_stdout => 1 }, $cmd ); $pssh->run;