From owner-freebsd-questions Wed Jan 3 09:11:33 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA20640 for questions-outgoing; Wed, 3 Jan 1996 09:11:33 -0800 (PST) Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA20632 for ; Wed, 3 Jan 1996 09:11:29 -0800 (PST) Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA20344; Wed, 3 Jan 96 11:11:27 -0600 Received: by emu.fsl.noaa.gov (1.38.193.4/SMI-4.1 (1.38.193.4)) id AA08477; Wed, 3 Jan 1996 10:11:25 -0700 Date: Wed, 3 Jan 1996 10:11:25 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) Message-Id: <9601031711.AA08477@emu.fsl.noaa.gov> To: matt@server.wulaw.wustl.edu Cc: questions@freebsd.org In-Reply-To: <30E12443.4B0D@server.wulaw.wustl.edu> (message from Matt Rosenberg on Wed, 27 Dec 1995 04:47:31 -0600) Subject: Re: ecu and tip Sender: owner-questions@freebsd.org Precedence: bulk >>>>> "Matt" == Matt Rosenberg writes: Matt> I am trying to automate a daily batch download from a BBS Matt> via modem using 2.1.0. I am using ecu BETA-3.34.56 and rz Matt> (The standard FreeBSD port)version 3.36. Matt> I created a wonderful ecu script ... Matt> I thought I would then try tip and converted my ecu script Matt> to perl to interface with tip ... Matt> Anyone have an idea for a work around either place? Hmm, maybe you want to try expect? I've never tried it with rz/sz, but expect acts really well with a lot of other programs. ------------------------------------------------------------------------ #!/usr/local/bin/expect set fd [open /dev/cuaa1 r+] stty -f /dev/cuaa1 38400 raw spawn -open $fd ... do login stuff ... ... get to patch location ... exec rz exit 0 ------------------------------------------------------------------------ -- Sean Kelly NOAA Forecast Systems Laboratory, Boulder Colorado USA TASK: Shoot yourself in the foot. In Modula2: After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head.