X17914@BBRBFU01.BITNET (03/23/90)
UNETJ@UNCVX1.bitnet wrote in a message: >> Your problem is that the directory the Mark showed was actually a >> subdirectory (not sure if that is the correct term in UNIX). What >> [stuff deleted] >> Then if you do another DIR command you will see more subdirectories >> J. Douglas Ashbrook (301) 496-5181 > > Hmmm. Last time I used Unix it was an LS command not DIR for a directory of > list. Unless mark is using an alias? Well, your right (eh... sort off) .If you work with Unix and you type "ls", you will get a directory list. An alias is also possible, but that's not the point here. If you use the BITFTP facilities at the Princeton University, the command file you send to BITFTP@PUCC contains the commands that you would like to see executed by the BITFTP software at PUCC. One of those commands is the DIR command. For online FTP (direct links) for UNIX to UNIX , the FTP applications on the different hardware platforms generally use "ls" as an command to get an directory listing. If your unix machine is for example talking to a Cyber mainframe running the NOS operating system, (non-unix) the FTP application on the Cyber can have the DIR command instead of LS. As an example: You send the folowing commands to BITFTP@PUCC as a regular mail. FTP plains.nodak.edu USER anonymous CD pub/appleII/nonGS/languages DIR BINARY GET hyperc.sdk GET fp.sdk CD .. DIR CD .. DIR CD .. DIR QUIT YOU WILL GET THE FOLLOWING MAIL BACK: Received: by PUCC (Mailer R2.06X) id 8816; Wed, 07 Feb 90 11:48:04 EST Date: Wed, 7 Feb 1990 11:48:02 EST From: Princeton BITNET FTP Server <BITFTP2@PUCC> To: X17921@BBRBFU01 Subject: BITFTP REPLY > FTP plains.nodak.edu > USER anonymous >> OPEN PLAINS.NODAK.EDU <<< 220 plains FTP server (Version 4.163 Mon Sep 11 20:38:45 CDT 198 9) ready. >> USER anonymous X17921@BBRBFU01 >>> USER anonymous <<< 331 Guest login ok, send ident as password. >>> PASS ******** <<< 230 Guest login ok, access restrictions apply. > CD pub/appleII/nonGS/languages >> CD pub/appleII/nonGS/languages >>> CWD pub/appleII/nonGS/languages <<< 250 CWD command successful. > DIR >> DIR ( DISK >>> PORT 128,112,129,99,17,2 <<< 200 PORT command successful. >>> LIST <<< 150 Opening ASCII mode data connection for /bin/ls. <<< 226 Transfer complete. total 340 -rw-r--r-- 1 548 17 3353 Feb 5 02:50 HyperCML -rw-r--r-- 1 548 17 12288 Feb 2 02:48 MAF.BIN -rw-r--r-- 1 548 17 24576 Feb 2 02:48 MAF.BIN1 -rw-r--r-- 1 548 17 35502 Feb 2 02:48 MAF.BIN2 -rw-r--r-- 1 548 17 31113 Feb 2 02:48 MAF.SRC1 -rw-r--r-- 1 548 17 40803 Feb 2 02:48 MAF.SRC2 -rw-r--r-- 1 548 17 32001 Feb 2 02:48 MAF.UTIL.1 -rw-r--r-- 1 548 17 25963 Feb 2 02:48 MAF.UTILS -rw-r--r-- 1 548 17 2036 Feb 5 02:52 ca.shk -rw-r--r-- 1 548 17 54272 Feb 4 06:03 fp.sdk -rw-r--r-- 1 548 17 227 Feb 5 02:54 hyperc.READ -rw-r--r-- 1 548 17 99328 Feb 4 05:52 hyperc.sdk > BINARY >> BINARY VARIABLE >>> TYPE i <<< 200 Type set to I. > GET hyperc.sdk >> GET hyperc.sdk HYPERC.SDK.D ( REPLACE >>> PORT 128,112,129,99,17,3 <<< 200 PORT command successful. >>> RETR hyperc.sdk <<< 150 Opening BINARY mode data connection for hyperc.sdk (99328 by tes). <<< 226 Transfer complete. >>>> File "hyperc.sdk" sent to you as "HYPERC SDK". > GET fp.sdk >> GET fp.sdk FP.SDK.D ( REPLACE >>> PORT 128,112,129,99,17,9 <<< 200 PORT command successful. >>> RETR fp.sdk <<< 150 Opening BINARY mode data connection for fp.sdk (54272 bytes) . <<< 226 Transfer complete. >>>> File "fp.sdk" sent to you as "FP SDK". AND SO ON FOR THE OTHER COMMANDS TO. > QUIT >> CLOSE >>> QUIT <<< 221 Goodbye. Hope this gives a lot of people a view on the BITFTP facilities. Have Fun. Robert Jansen Local Unix and Lan hacker at the Brussels Free University.