$ret_val = `yoursystemcall`; #### # on your local machine $ret_val = `ssh user@remote /path/to/executable/program`; # if your remote program outputs anything, that # value will now be in $ret_val for you use on the local # computer