in reply to Net::SSH::Perl hangs(during cmd), but only in Mason environment

You could try to use Expect.pm + ssh instead. Nice tutorial on here: Using Expect.pm to Manage an Unreliable Program
  • Comment on Re: Net::SSH::Perl hangs(during cmd), but only in Mason environment