Operating System - HP-UX
1819796 Members
3106 Online
109607 Solutions
New Discussion юеВ

sftp does not work binary(ascii) command?

 
ROY_16
Occasional Contributor

sftp does not work binary(ascii) command?

Hi,

some sftp commands does not work on hp-ux secure shell.(A.04.30.007,hp-ux11.23)
other ssh client software(for example Reflection for secure IT) can use these comamands with sftp.how would I do this?

sftp> binary
Invalid command.
sftp>
sftp> ascii
Invalid command.
sftp>

Thanks in advance
ROY
ROY
4 REPLIES 4
Peter Godron
Honored Contributor

Re: sftp does not work binary(ascii) command?

Hi,
there is no binary/ascii command for sftp. Check with help.

Please see this earlier thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=846520

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
Steven E. Protter
Exalted Contributor

Re: sftp does not work binary(ascii) command?

Shalom Roy,

sftp is smarter than ftp. It saves you the trouble of mangling them with ftp by figuring things out for itself. Correctly, nearly 100% of the time.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ROY_16
Occasional Contributor

Re: sftp does not work binary(ascii) command?

thanks for the quick responses, i read earlier thread and understand it.
i think some customer needs these commands, because of "ftp" can work these commands.
(for example multiple file transfers like a batch mode)



ROY
Steven Schweda
Honored Contributor

Re: sftp does not work binary(ascii) command?

I believe that when it was designed, the SFTP
did everything in binary. (Because everyone
runs UNIX, it doesn't matter, right?)
Perhaps the protocol has since been extended
to offer a choice, but I don't know. (Check
the RFC?) In any case, it's common for SFTP
clients and servers to know nothing about
different line endings. (Or EBCDIC.)

I gather that some people use programs like
dos2unix and/or unix2dos to compensate for
this oversight. There are also options in
the Info-ZIP Zip and UnZip programs which can
change line endings on text files (Zip: -l,
-ll; UnZip: -a, -aa).

Is there an actual problem which you are
trying to solve, or do you just feel bad
because the "ascii" and "binary" commands are
missing?