EasyManua.ls Logo

HP NonStop SSH 544701-014

HP NonStop SSH 544701-014
344 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
HP NonStop SSH Reference Manual SSH and SFTP Client Reference 213
If the FC command is followed by a negative number, then the corresponding command relative to the end of the history
list is selected (-1 equates to last command, -2 equates to next-to-last command, etc.):
sftp> history
1> cd $data1.reports
2> dir
3> get file1
4> get file2
5> get file3
6> get file4
sftp> fc -3
get file2
...//
sftp>
If a string is specified, then the corresponding command is retrieved using string matching, i.e. the last command
containing the given string is retrieved and can be modified and executed.
sftp> fc rep
cd $data1.reports
... 1
cd $data1.report1
...
sftp> pwd
Remote working directory: /G/data1/report1
sftp>
It is possible to force string matching for a given number by enclosing the number in single or double quotes:
sftp> history
1> ls -l k*
2> get file678
3> put report89
4> cd $disk.subvol
5> cd $data1.reports
6> get fil56789
7> get fl456789
8> cd $data1.report1
9> pwd
sftp> fc "4"
get fl456789
...//
sftp>
The FC command without parameter causes the last command being retrieved for fix command processing.
A modified command is not executed (i.e. ignored) if the character sequence on the fix command line is ‘//’ as shown
above.
The command “!<n>” to execute a command in the history list is not implemented. The following error is returned:
(‘!’) not supported for security reasons.
Creation of Format 2 Guardian Files
Since version 0092 it is possible to create format 2 files. In pre-0092 releases data could be read from and written to
existing format 2 files but format 2 files could not be newly created during an SFTP session. Format 2 files had to be
created before an SFTP transfer could write data to them.
The indication of a format 2 file is a plus sign directly appended to the file code of the Guardian file attributes, similar to
the file code shown by FILEINFO for format files.
Examples:
sftp> get remote local,101+,28,56,128
sftp> put local remote,0+

Table of Contents

Related product manuals