Use shell conjunctions instead to run the two commands as one:
$ssh->cmd("cd $dir && $cmd")
In reply to Re^6: Urgent Help For Perl Issues
by salva
in thread Urgent Help For Perl Issues
by arvindninestars
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |