Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!laidbak!daveb From: daveb@laidbak.UUCP (Dave Burton) Newsgroups: comp.unix.questions Subject: Re: How to download from BBS using Xmodem Keywords: xmodem BBS download Message-ID: <1336@laidbak.UUCP> Date: 12 Feb 88 18:03:49 GMT References: <1560@cartan.Berkeley.EDU> Reply-To: daveb@laidbak.UUCP (Dave Burton) Organization: is pretty bad/My method of Lines: 41 In article <1560@cartan.Berkeley.EDU> ahernan@brahms.Berkeley.EDU.UUCP (alejandro hernandez) writes: |I've got a version of Xmodem for UNIX, but I'm not sure how to go about |using it. ... | |Now let's suppose I'm on a UNIX machine. I usually dial out using tip or |kermit. If I use tip to call the BBS and make the connection, I would also |log on and find a file and ask the remote machine to start downloading. Then |I'd do a shell escape in tip by typing: | ~! |I go back to my local machine, and perhaps try something like | xmodem -rb filename |to ask xmodem to receive the file....Only it doesn't work! I can't seem to |get Xmodem to work right. What am I doing wrong here? ... It depends on the Xmodem on your Unix system. I just wrote my own Xmodem for Unix and to use it from tip I login to the remote host, then: $ xmodem -sc file # -sc: send, crc ~C[Local command?]xmodem -rc /tmp/file And there she goes! The problem you may have is that not every version of tip(1) is *compiled* to allow ~C (note the case!) to Connect a program to the remote host (the 4.2BSD tip source #ifdefs this). Basically, your problem in using ~! is that most XMODEMs use the stdout|stderr to communicate on, and tip connects this to the *local* host. ~C connects to the comm line. Further, tip wants to open its comm line for exclusive use, so your XMODEM cannot do a subsequent open; it has to use the already open file descriptors. -- --------------------"Well, it looked good when I wrote it"--------------------- Verbal: Dave Burton Net: ...!ihnp4!laidbak!daveb V-MAIL: (312) 505-9100 x325 USSnail: 1901 N. Naper Blvd. #include Naperville, IL 60540