NetBSD Problem Report #41560

From  Tue Jun  9 08:31:53 2009
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 4E6B263C244
	for <>; Tue,  9 Jun 2009 08:31:53 +0000 (UTC)
Message-Id: <>
Date: Tue,  9 Jun 2009 08:31:52 +0000 (UTC)
Subject: cu can put but not take
X-Send-Pr-Version: www-1.0

>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
(private user)
(not available here)
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.
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
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).

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.