| How To FTP Files Using Libr Shell Views: |
| Introduction: This page explains how to FTP files using Libr SHELL Views. Libr Shell Views expose all libraries, and therefore all sublibraries and members, in your system. Therefore, access to Libr Shell Views should be granted only to trusted users, if at all!!! |
| Sample Libr Shell View: Assume the Admin has already created the following LIBR Shell View and saved it under the name of LIBR.FTPC |
| FTPing Files Using Libr Shell Views: Libr members, or data files, reside in sublibraries. Sublibraries are, themselves, subdirectories in Libraries. Therefore, to FTP files, we must first point the Shell View to the desired library, then move into to the desired sublibrary. To do so, follow the following steps: 1) Move into the View subdirectory itself (i.e., LIBR) , then 2) Point the view to a real library, such as PRD1, then 3) Move into the desired sublibary, such as MACLIB, then 4) FTP your file(s). Procedure: 1) Move into the View subdirectory, LIBR, itself: Line Mode Clients: issue CD /LIBR GUI clients: Click on LIBR subdirectory Icon. Graphical clients automatically issue a DIR as soon as you click on a subdirectory icon. If you are using a line-mode client, as I am, and care to issue a DIR, then here is what you get back from the server: Oops! Nothing (i.e., null listing). Well, this actually makes sense because our view, LIBR, does not point to a real library, yet. So, without any further ado, let's fix this problem (i.e., let's point to a real library). 2) Point the View to a library such as PRD1: In order to do this, you, the user, must know the real library name! Line-mode clients: issue CD real_library_name GUI clients: modify the path to point to real_library_name Graphical clients, again, automatically issue a DIR as soon as you modify the path. If you are using a line-mode client, and care to issue a DIR, then here is what you get back from the server: 3) Move into the Desired sublibrary, such as MACLIB: Line-mode clients: issue CD sublibary GUI clients: click on the desired sublibrary icon. Graphical clients automatically issue a DIR as soon as you click on a subdirectory icon. If you are using a line-mode client, as I am, and care to issue a DIR, then here is what you get back from the server: 4) FTP your file(s): You can now download and upload files as you wish. |
| ftp> dir x*.* 200 Command okay. 150 File status okay, about to open data connection. -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XECBTAB.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XMTEXAMP.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XPCC.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XPCCB.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XPOST.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XWAIT.A 226 Closing data connection. ftp: 346 bytes received in 0.38Seconds 0.91Kbytes/sec. |
| ftp> dir 200 Command okay. 150 File status okay, about to open data connection. drw-rw-rw- 1 vse none 0 Aug 12 11:17 BASE drw-rw-rw- 1 vse none 0 Aug 12 11:17 BASED drw-rw-rw- 1 vse none 0 Aug 12 11:17 MACLIB drw-rw-rw- 1 vse none 0 Aug 12 11:17 MACLIBD 226 Closing data connection. ftp: 222 bytes received in 0.27Seconds 0.82Kbytes/sec. |
| ftp> ftp> CD MACLIB 250 Requested file action okay, completed. |
| ftp> dir 200 Command okay. 150 File status okay, about to open data connection. 226 Closing data connection. |
| ftp> ftp> cd /LIBR 250 Requested file action okay, completed. |
| ftp> ftp> cd prd1 250 Requested file action okay, completed. |
| XFER = BEGIN TYPE = RCV TGT_AM = PAM TGT_TYPE = DISK TGT_RECFM = F TGT_RECL = 80 TGT_DISP = SHR XFER = END |
| Shortcut: If you are using a line-mode client, then you can, if you wish, combine all steps in a single command. For example, you can issue: PUT client_file /View_name/library/sublibrary/entry_name |