Path: utzoo!attcan!uunet!lll-winken!snll-arpagw!paolucci From: paolucci@snll-arpagw.UUCP (Sam Paolucci) Newsgroups: comp.sys.amiga Subject: Re: Fred Fish, PD programs Message-ID: <34@snll-arpagw.UUCP> Date: 16 Jan 89 00:30:12 GMT References: <6540@louie.udel.EDU> <14892@cisunx.UUCP> <1624@cveg.uucp> <146@rpi.edu> Reply-To: paolucci@snll-arpagw.UUCP (Sam Paolucci) Organization: Sandia National Labs, Livermore, CA Lines: 40 In article <146@rpi.edu> shadow@pawl.rpi.edu (Deven T. Corzine) writes: ->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. Another possibility is that some packets were bad so they had to be retransmitted again :^). ->Deven -> ->------- shadow@pawl.rpi.edu --- Deven Thomas Corzine ------------------------- -- -+= SAM =+- "the best things in life are free" ARPA: paolucci@snll-arpagw.llnl.gov