using System V 'cu'
Paul J. Mech
pmech at oucsace.cs.OHIOU.EDU
Tue Nov 22 14:18:26 AEST 1988
In article <138 at minya.UUCP>, jc at minya.UUCP (John Chambers) writes:
- In article <6808 at venera.isi.edu>, cracraft at venera.isi.edu (Stuart Cracraft) writes:
- > How do you slow down cu's file transfer capability (e.g. the tilde-put
- > command) ??
- >
- I've been bitten by this one on several systems. What I've done is
- write my own version of cat (typically 10 lines or so) that runs quite
- slowly, typically by reading 100-byte chunks, writing them, and then
- doing sleep(1). I make a script called "cu" that has this "cat" in
- its search path before /bin, and knows the name of the real cu. It
- seems to work pretty well.
-
A simular technique that I use is a C program that metes out characters with
any number of delay schemes using fflush(), sleep(), and optional characters
in the file to flag additional delays. I use this as a filter with the ~$
command. It was a quick and dirty workaround to transfer a file to an IBM
mainframe that didn't seem to like me at all, but has prooven to be of enough
utility to keep around.
More information about the Comp.unix.wizards
mailing list