my $cmd1 = $ssh->exec("ls"); my $cmd2 = $ssh->exec("configure"); my $cmd3 = $ssh->exec("exit");