FTP Compatibility/Differences

HSI supports several of the commonly used FTP commands, including "dir","get","ls","mdelete","mget","put","mput" and"prompt", with the following differences:

  • HSI transfers are always in "binary" mode. 
  • The "dir" command is an alias for "ls" in HSI.  The "ls" command supports an extensive set of options for displaying files, including wildcard pattern-matching, and the ability to recursively list a directory tree
  • The "put" and "get" family of commands support recursion
  • There are "conditional put" and "conditional get" commands (cput, cget)
  • The syntax for renaming local files when storing files to HPSS or retrieving files from HPSS is different than FTP. With HSI, the syntax is always "local_file : HPSS_file", and multiple such pairs may be specified on a single command line.

    With FTP, the local filename is specified first on a "put" command, and second on a "get" command.

    For example, when using HSI to store the local file "file1" as HPSS file "hpss_file1", then retrieve it back to the local filesystem as "file1.bak", the following commands could be used:

          put file1 : hpss_file1 

          get file1.bak : hpss_file1

    With FTP, the following commands could be used:

          put file1 hpss_file1

          get hpss_file1 file1.bak

  • The "m" prefix is not needed for HSI commands; all commands that work with files accept multiple files on the command line. The "m" series of commands are intended to provide a measure of compatibility for FTP users.