[I posted this yesterday and didn't see it come out on the list]How is "cd"
supposed to work with Perl sftp? I cd somewhere, but the realpath
for "." doesn't change. If I put a file without a path, it goes to the
pre-cd path.
I looked at psftp and it appears I need to maintain my own "pwd" and use
it with any command. Is this true? In other words, I have to keep track of
pwd?
It's not a state within sftp?
I'd like to suggest the POD mention this. It wasn't intuitive to me.
Also, Dave you may recall I emailed you around Thanksgiving about how to
specify
the identity file (how to specify ssh args to sftp). It's done like this:
$sftp = Net::SFTP->new('some.host.name',
( user => 'user',
ssh_args => ( ([ identity_files =>
([ '/home/user/.ssh/ident_file' ]) ]) )
)
);
That was another thing that was not intuitive to me. If the POD gave an
example,
it would be very useful.
Thanks,
Mark
|