|
The File Shuffle: Listings |
Listing 1: Transferring files between DOS and Unix systems.A. General DOS file name format:volume:filename.ext
B. Sample session:
sun1.imbi:/h/eble$ ftp dat2
Connected to da2.imbi.uni-freiburg.de.
220 PC Resident FTP 2.2TN/TC-D server, ready
Name (da2:eble):
331 Password required.
Password:
230 User logged in
ftp> pwd
257 "C:\U" is the current directory
ftp> cd a:
250 Chdir okay
ftp> dir
200 Command Accepted
150 Opening connection
s10a 16246 02-20-94 23:08
.. [listing shortened]
993280 Bytes Available
226 Transfer complete
916 bytes received in 2 seconds (0.44 Kbytes/s)
ftp> put cart-sourcecode.tar_gz
200 Command Accepted
150 Opening connection
226 Transfer complete
local: cart-sourcecode.tar_gz remote: cart-sourcecode.tar_gz
263806 bytes sent in 9.7 seconds (27 Kbytes/s)
ftp> dir
200 Command Accepted
150 Opening connection
s10a 16246 02-20-94 23:08
.. [listing shortened]
cart-sou.tar 263806 04-19-94 13:47
729088 Bytes Available
226 Transfer complete
958 bytes received in 0.32 seconds (2.9 Kbytes/s)
ftp> [cursor]
Listing 2: Transferring files between MacOS and Unix systems.A. General format for a MacOS file name:volume:directory:filename B. Sample session:ftp> dir 200 This space intentionally left blank < > 150 Opening connection Desktop Folder/ The Beauty of Fractals Lab/ 226 Transfer complete 394 bytes received in 1.7 seconds (0.23 Kbytes/s) ftp> cd "The Beauty of Fractals Lab" 250 Chdir okay ftp> dir 200 This space intentionally left blank < > 150 Opening connection Demos/ Old Demos/ The Beauty of Fractals Lab 226 Transfer complete 48 bytes received in 0.31 seconds (0.15 Kbytes/s) ftp> cd "Old Demos" 250 Chdir okay ftp> dir 200 This space intentionally left blank < > 150 Opening connection Demo1 Demo2 Demo3 226 Transfer complete 21 bytes received in 0.31 seconds (0.067 Kbytes/s) ftp> bin 200 Type set to I, binary transfer mode [macbinary disabled] ftp> get Demo1 200 This space intentionally left blank < > 150 Opening connection 226 Transfer complete local: Demo1 remote: Demo1 856 bytes received in 0.028 seconds (30 Kbytes/s) ftp> quit 221 Goodbye Listing 3: Transferring files between VMS and Unix systems.A. General VMS file name format:node::device:[directory]name.extension;version B. Typical listing of a directory on a VMS file system:ftp> dir *.raw 200 Port 132,230,17,201,6,29 Okay. 125 File status okay; about to open data connection. DUA0:[ROHDATEN]1MEBRHT.RAW;1 17/18 1-FEB-1994 15:14 DUA0:[ROHDATEN]1MECLH1.RAW;1 17/18 1-FEB-1994 15:14 .. DUA0:[ROHDATEN]ZSSN.RAW;1 17/18 2-NOV-1993 16:11 226 Closing data connection. remote: *.raw 32554 bytes received in 2.8 seconds (11 Kbytes/s) ftp> [cursor] C. Changing directories:ftp> dir *.dir 200 Port 132,230,17,201,6,35 Okay. 125 File status okay; about to open data connection. DUA0:[ROHDATEN]FILETRANS.DIR;1 1/3 24-JUN-1993 20:40 DUA0:[ROHDATEN]JUST.DIR;1 4/6 24-JUN-1993 20:40 DUA0:[ROHDATEN]KALT.DIR;1 1/3 24-AUG-1993 14:10 DUA0:[ROHDATEN]ZIADI.DIR;1 3/3 30-JUN-1993 14:46 226 Closing data connection. remote: *.dir 328 bytes received in 0.0073 seconds (44 Kbytes/s) ftp> cd filetrans 550 Requested action not taken. File not found. ftp> cd [.filetrans] 250 Requested file action okay, completed. ftp> cd .. 553-Requested action not taken. 553 Error in directory name ftp> cd [..] 553-Requested action not taken. 553 Error in directory name ftp> cdup 200 Command Okay. ftp> [cursor] D. Translating characters in the retrieved file name:ftp> ntrans ;[]: . ftp> get DUA0:[ROHDATEN]ZSSN.RMB;1 200 Port 132,230,30,82,5,220 Okay. 125 File status okay; about to open data connection. 226 Closing data connection. local: DUA0ROHDATENZSSN.RMB.1 remote: DUA0:[ROHDATEN]ZSSN.RMB;1 8772 bytes received in 1.4 seconds (5.9 Kbytes/s) ftp> [cursor] Listing 4: A file transfer by proxy.ftp> open ftp.ruf Connected to sun2.ruf.uni-freiburg.de. sun2.ruf.uni-freiburg.de:220 sun2.ruf.uni-freiburg.de FTP server (UNIX(r) System V Release 4.0) ready. Name (ftp.ruf:eble): ftp sun2.ruf.uni-freiburg.de:331 Guest login ok, send ident as password. Password: sun2.ruf.uni-freiburg.de:230 Guest login ok, access restrictions apply. ftp> proxy open orion.informatik Connected to orion.informatik.uni-freiburg.de. 220 orion FTP server (SunOS 4.1) ready. 331 Password required for eble. Password: 230 User eble logged in. ftp> proxy pwd orion.informatik.uni-freiburg.de:257 "/home/vega3/eble" is current directory. ftp> pwd sun2.ruf.uni-freiburg.de:257 "/" is current directory. ftp> proxy get see.also orion.informatik.uni-freiburg.de:227 Entering Passive Mode (132,230,17,200,5,206) sun2.ruf.uni-freiburg.de:200 PORT command successful. sun2.ruf.uni-freiburg.de:150 ASCII data connection for see.also (132.230.17.200,1486) (452 bytes). orion.informatik.uni-freiburg.de:150 ASCII data connection for see.also (132.230.1.2,20). orion.informatik.uni-freiburg.de:226 ASCII Transfer complete. sun2.ruf.uni-freiburg.de:226 ASCII Transfer complete. local: see.also remote: see.also ftp> [cursor] |
Print This Page Send as e-mail |












