NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-i386/41560: cu can put but not take



>Number:         41560
>Category:       port-i386
>Synopsis:       cu can put but not take
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 09 08:35:00 +0000 2009
>Originator:     Nino
>Release:        5.0
>Organization:
(private user)
>Environment:
(not available here)
>Description:
I tried to connect two computers over modems using cu. Both computers were 
using NetBSD 5.0. I let one computer autoanswer incoming calls (ATS0=1) and 
start a terminal on the modem line /dev/ttyU1 by editing /etc/ttys.

Logging in works flawlessly, if somewhat slow. But transferring files does not; 
all files I tried were naturally pure ASCII files. I can "put" files on the 
dial-server. But I cannot "take" them from there.

I tried again in Linux (Xubuntu 8.04) to log in and transfer files - it can 
both "take" and "put" files from and to the NetBSD dialin-server. So I assume 
it is NetBSD's cu that makes difficulties.
>How-To-Repeat:
Try logging in remotely by means of a modem.

Then try to say:

~p myfilehere myfilethere <-- this will work
~t myfilethere myfilehere <-- does NOT work
>Fix:
You can use slattach to connect the serial lines on both computers to 
sl0-interfaces instead of having a terminal. That way, you could do ftp after 
dialing in.

Alternatively, you can script (best with script, not within cu) the whole 
cu-session and cat the files you want to see; then all files will have been 
recorded in the script which you then can watch locally. While this solution 
seems incredibly crappy, it has the advantage that cu does not lower the speed 
to transfer files more securely - it just types them out rather quickly.

Alternatively, maybe you can use the commands ~< and ~> or ~| and ~$, but 
despite numerous tries I could not find out how to do that, and regrettably 
they are not too well documented either. If you know how to use them, please 
let me know (best by giving me an example).



Home | Main Index | Thread Index | Old Index