in reply to Get the out put when run script through remotely and locally

Perhaps the output is from STDERR. Try
($output) = `/home/jhon/upload -yes 2>&1`;

rdfield