http://www.perlmonks.org?node_id=1023640


in reply to Re^2: Urgent Help For Perl Issues
in thread Urgent Help For Perl Issues

Just use the cd command with your path and navigate to your path and do untar

my($stdout, $stderr, $exit) = $ssh->cmd("cd $path"); ($stdout, $stderr, $exit) = $ssh->cmd("untar tar.gz");