[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-i386/41560: cu can put but not take
>Synopsis: cu can put but not take
>Arrival-Date: Tue Jun 09 08:35:00 +0000 2009
(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
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).
Main Index |
Thread Index |