Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!csd4.milw.wisc.edu!leah!itsgw!rpi!pawl7.pawl.rpi.edu!shadow From: shadow@pawl.rpi.edu (Deven T. Corzine) Newsgroups: comp.sys.amiga Subject: Re: Fred Fish, PD programs Message-ID: <146@rpi.edu> Date: 15 Jan 89 12:06:29 GMT References: <6540@louie.udel.EDU> <14892@cisunx.UUCP> <1624@cveg.uucp> Sender: usenet@rpi.edu Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 34 In article <1624@cveg.uucp> gmg@hcx.uucp (Greg M. Garner) writes: [...] >I wanted to ad a line that helps me a great deal, as I get tired of >watching a ftp screen that sits there with nothing happening for >long periods of time. The hash command will change it so that >the system prints a hash mark (#) every 1k of transfered data, so that >you know how the system is progressing on that transfer. I usually >type the hash command right after setting the mode to binary. > > Greg Garner > 501-442-4847 > gmg@hcx.uucp USENET: ...!uunet!harris.cis.ksu.edu!hcx!gmg Actually, I've noticed that on every Unix system I've used ftp on, the number of hash marks is never quite the same, even for the same file. And the number of hash marks is always at least as many as there should be, but usually more. For example, transferring an 80K file, you might get 93 hash marks one time, and 107 another. My interpretation of why this happens is that in the code, it does a read(fd,buf,1024) to read 1K, printing a hash mark for that 1K, but not taking into account (as far as printing hash marks goes) that the read call may return less than 1024 bytes read. So you end up with extra reads, and therefore an inappropriate number of hash marks printed. I believe it has the same problem with writes, also. (Haven't watched carefully; I usually do "ftp" get commands so the umask value will take effect.) JTYMLTK. Deven ------- shadow@pawl.rpi.edu --- Deven Thomas Corzine ------------------------- Cogito shadow@acm.rpi.edu 2346 15th Street Pi-Rho America ergo userfxb6@rpitsmts Troy, NY 12180-2306 (518) 272-5847 sum... In the immortal words of Socrates... "I drank what?" ...I think.