Re: SFTP Doubts

[email protected] ("Jenda Krynicky")
Newsgroups perl.beginners
Message-ID <[email protected]>
From:	"Rajnikant" <[email protected]>
> Hello everyone,
>  
> I'm trying to replace FTP module by SFTP. I'm facing some issues in doing
> same.
> Following is the list of my doubts :(.
>  
> 1. why are there no ascii and binary methods associated with SFTP?

Most likely because the authors believed everyone should use some 
kind of Unix anyway.

> 2. Are there any methods exists in SFTP similar to that of
> login,ascii,binary as that in FTP module?

For login it depends a bit on the module used, I ended up using 
Net::SSH2, cause I could not get Net::SFTP working under Windows. 
There you first create an SSH2 object, authenticate that and then ask 
it for a SFTP object.

There is no ascii/binary in SFTP as far as I know.

> 3. How to check SFTP method failure in Perl?

Depends on the module.

> 4. how to delete the SFTP object created by New method?

undef($obj); ?

Jenda
===== [email protected] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.