NetBSD Problem Report #41560

From www@NetBSD.org  Tue Jun  9 08:31:53 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 4E6B263C244
	for <gnats-bugs@gnats.netbsd.org>; Tue,  9 Jun 2009 08:31:53 +0000 (UTC)
Message-Id: <20090609083152.53E3063B9E6@www.NetBSD.org>
Date: Tue,  9 Jun 2009 08:31:52 +0000 (UTC)
From: nbsdold@gmx.net
Reply-To: nbsdold@gmx.net
To: gnats-bugs@NetBSD.org
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
>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).

NetBSD Home
NetBSD PR Database Search

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