Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^6: Urgent Help For Perl Issues

by salva (Canon)
on Mar 15, 2013 at 10:27 UTC ( [id://1023658]=note: print w/replies, xml ) Need Help??


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
    No Luck salva..Any Other ideas..
      yes, post your code, otherwise nobody is going to guess what you are doing wrong!
      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1023658]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found