HP NonStop SSH Reference Manual
SSH and SFTP Client Reference
•
211
3.
A key-sequenced file is transferred between NonStop systems:
sftp> put keyseq,t keyseq,t,k,541,128,128,16,4072
Transferring ASCII files
Both SFTP and SFTPOSS support transfers in ASCII mode. If ASCII mode is enabled, files will be automatically
converted according to the server's newline convention for ASCII files. If required, the server's newline convention can
be configured. Furthermore, if the target file is located in a Guardian subvolume, an edit file will be created
automatically, without having to specify the file code explicitly in the file name.
The following commands control this feature:
•
ascii [dos|unix|mac]
changes to ASCII transfer mode and optionally sets the server's newline convention, where the meaning of the
newline convention specifier is as follows:
o
dos: lines are terminated by a CR LF sequence ("\r\n")
o
unix: lines are terminated by a LF ("\n")
o
mac: lines are terminated by a CR ("\r")
•
binary
changes to binary transfer mode.
The following sample illustrates how ASCII files can exchanged with an SSH daemon on a Windows server:
sftp> ascii dos
Newline convention is now dos
File transfermode is now ascii
sftp> put textfile textfile.txt
Uploading textfile to /test/textfile.txt
sftp> get textfile.txt editfile
Fetching /test/textfile.txt to editfile
sftp>
In the above sample "editfile" is created as Guardian edit file (code 101), with the file correctly converted from the DOS
ASCII format used by Windows.
When writing Guardian edit files SFTP and SFTPSERV convert TAB characters to spaces like FTP/FTPSERV if
decimal line numbering is enabled (i.e. if parameter SFTPEDITLINESTARTDECIMALINCR is greater than or equal to
0 and parameter SFTPEDITLINENUMBERDECIMALINCR is not equal to 1000).
Fix Command and Command History
Within SFTP or SFTPOSS it is possible to list, modify and re-execute commands previously issued within the same
SFTP or SFTPOSS session.
Command History
Historic commands are displayed when the HISTORY command is entered, e.g.:
sftp> history
1> ls -l k*
2> get file678
3> put report89
4> cd $disk.subvol
5> cd $data1.reports
6> pwd
sftp>
Содержание NonStop SSH 544701-014
Страница 12: ...xii Contents HP NonStop SSH Reference Manual ...
Страница 24: ...24 Preface HP NonStop SSH Reference Manual ...
Страница 30: ...30 Introduction HP NonStop SSH Reference Manual ...
Страница 46: ...46 Installation Quick Start HP NonStop SSH Reference Manual ...
Страница 132: ...132 The SSH User Database HP NonStop SSH Reference Manual ...
Страница 214: ...214 SSH and SFTP Client Reference HP NonStop SSH Reference Manual ...
Страница 278: ...278 STN Reference HP NonStop SSH Reference Manual ...
Страница 298: ...298 Monitoring and Auditing HP NonStop SSH Reference Manual ...
Страница 302: ...302 Performance Considerations HP NonStop SSH Reference Manual ...