Hi list, I have a perl (5.6) SFTP client (Net::SFTP) that gets and puts files using either a full or relative path with the filename something like this
$sftp->get( $remotename, $localname ); # where $remotename = '/Home/OUT/myfile.txt' But I have a remote system (a unix box) that rejects the path and requires a chdir to the correct directory. To fetch a file I need to do something like this $sftp->chdir( $path ); #cd to the folder $sftp->get( $shortname, $localname); # get the file using only the file name I see no way to do $sftp->chdir. Please advise if something similar is possible. I have tried many combinations of commands such as $ssh->cmd( 'cd $path' ) with no joy. $ssh->cmd() always seems to hang. TIA. Sturdy
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs