Transferring Ascii Files; Fix Command And Command History - HP NonStop SSH 544701-014 Reference Manual

Table of Contents

Advertisement

3. A key-sequenced file is transferred between NonStop systems:
sftp> put keyseq,t

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:
dos: lines are terminated by a CR LF sequence ("\r\n")
o
o
unix: lines are terminated by a LF ("\n")
mac: lines are terminated by a CR ("\r")
o
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>
HP NonStop SSH Reference Manual
keyseq,t,k,541,128,128,16,4072
SSH and SFTP Client Reference • 211

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents