Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!rpi!batcomputer!lynch From: lynch@batcomputer.tn.cornell.edu (Tim Lynch) Newsgroups: comp.sys.hp Subject: problem with anonymous ftp and get command Keywords: anonymous ftp get Message-ID: <9518@batcomputer.tn.cornell.edu> Date: 9 Jan 90 15:22:29 GMT Distribution: comp Organization: Theory Center, Cornell U., Ithaca NY Lines: 63 We've come across a problem using anonymous ftp under HP-UX. When we log into a remote system, such as sumex we cannot use get to get a file that is not in the current working directory. The following is an abbreviated listing of a session that demonstrates the problem. I've commented some of the lines: [41] chemres> ftp sumex # we connect to sumex Connected to sumex-aim.stanford.edu. 220 sumex-aim FTP server (SunOS 4.0/3) ready. Name (sumex-aim.stanford.edu:): anonymous Password (sumex-aim.stanford.edu:anonymous): 331 Guest login ok, send ident as password. 230 Guest login ok, access restrictions apply. ftp> dir # and list the top level dir 200 PORT command successful. 150 ASCII data connection for /bin/ls (128.84.242.1,36597). total 896 -rw-r--r-- 1 1004 staff 894298 Jun 23 1989 allegro122.sit.hqx.crypt drwxr-x--x 2 root staff 512 Oct 23 19:11 bin drwxr-x--x 2 root staff 512 Nov 12 1988 etc drwxr-sr-x 2 13 8 1536 Dec 6 15:54 imap drwxrwsr-x 26 macmod info-mac 512 Jan 9 02:15 info-mac drwxr-srwt 4 root 8 1536 Dec 15 23:30 pub drwxr-xr-x 2 1077 user 512 Feb 6 1989 tmycin 226 ASCII Transfer complete. 446 bytes received in 0.23 seconds (1.91 Kbytes/sec) ftp> dir info-mac # now list the contents of info-mac 200 PORT command successful. 150 ASCII data connection for /bin/ls (128.84.242.1,36598). total 62 -rw-r--r-- 1 macmod info-mac 2049 Jan 8 18:47 00info-mac-abstracts.abs -rw-r--r-- 1 macmod info-mac 430 Jul 11 1989 00readme.txt drwxr-xr-x 2 macmod info-mac 4096 Jan 8 18:42 app [ ... more listing ] drwxr-xr-x 2 macmod info-mac 6656 Dec 27 16:54 util drwxr-xr-x 2 macmod info-mac 1024 Jan 5 11:41 virus 226 ASCII Transfer complete. 1582 bytes received in 0.91 seconds (1.70 Kbytes/sec) # the next line demo's the problem ftp> get info-mac/00readme.txt ftp: info-mac: No such file or directory # I have to cd to info-mac to get the file ftp> cd info-mac 250 CWD command successful. ftp> get 00readme.txt 200 PORT command successful. 150 ASCII data connection for 00readme.txt (128.84.242.1,36599) (430 bytes). 226 ASCII Transfer complete. 430 bytes received in 0.21 seconds (2.02 Kbytes/sec) # end of listing This behavior is only seen on anonymous ftp. It has been seen on all remote sites we've tried. It does not occur on other vendor's ftp implementations. Anyone know what is up?