in reply to Re^5: Urgent Help For Perl Issues
in thread Urgent Help For Perl Issues
ssh opens a new session for every command run and so commands with side effects as cd doesn't work as expected.
Use shell conjunctions instead to run the two commands as one:
$ssh->cmd("cd $dir && $cmd")
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Urgent Help For Perl Issues
by arvindninestars (Initiate) on Mar 18, 2013 at 07:20 UTC | |
by salva (Canon) on Mar 18, 2013 at 08:30 UTC | |
|
In Section
Seekers of Perl Wisdom