#!/bin/bash ssh bash -s < EOF #### #!/usr/bin/perl my $output = `ssh bash -s` < EOF