perl -e 'system(qq(ssh $_ "hostname && df -h")) for @ARGV' host1 host2 host3 ...