cu receive redir. ? - (nf)

gordon at sneaky.UUCP gordon at sneaky.UUCP
Sun Sep 9 02:16:00 AEST 1984


#R:sri-arpa:-1312000:sneaky:-1336091:000:1470
sneaky!gordon    Sep  8 11:16:00 1984

[Bug eater line.  Munch, munch, munch ...]

In order to use the redirection of received data in 'cu', you need
to have the system on the other end send the redirection command.  

	~>file

It has to start at the beginning of a line.  If the other system
has a prompt that leaves the cursor at the beginning of the line, you 
can sometimes type in the command with an extra ~ in front, depending on
how badly the other system objects to it.  Usually, however, you need to
type in a command like:

	echo "~>file"; cat file; echo "~>"

or its equivalent on other operating systems.  If it doesn't have an
equivalent to echo, you can edit the commands onto the beginning and end
of the file.  If it's a Unix*-like system on the other end, use ~%take, 
and cu will construct a suitable command line for you.

Note that putting redirection commands at the beginning of a line in netnews
articles is probably going to draw flames from lots of people who use cu
to log in to another system to read netnews.

Another possibility, useful for capturing entire sessions, is:

	cu <various parameters go here> | tee session.log


					Gordon Burditt
					convex!ctvax!trsvax!sneaky!gordon

* Unix is** a** trademark of** some** telephone bill*** company or** other.
** is, a, of, some, and or are hopefully not trademarks of some telephone bill
  company or other.
*** telephone bill is probably a trademark of AT&T****.
**** AT&T is a trademark of AT&T****. (infinitely recursive).



More information about the Comp.unix mailing list