*BSD News Article 58256


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!vixen.cso.uiuc.edu!news.ecn.bgu.edu!newspump.wustl.edu!newsreader.wustl.edu!usenet
From: Matt Rosenberg <matt@server.wulaw.wustl.edu>
Newsgroups: comp.unix.bsd.freebsd.misc,comp.lang.perl.misc
Subject: Modem control script
Date: Wed, 27 Dec 1995 14:47:38 -0600
Organization: Washington University School of Law
Lines: 28
Message-ID: <30E1B0EA.4DD0@server.wulaw.wustl.edu>
NNTP-Posting-Host: @128.252.30.222
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0b4 (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:11547 comp.lang.perl.misc:11551

I am trying to automate a daily batch download from a BBS via modem
using FreeBSD 2.1.0.  I am using ecu BETA-3.34.56 and rz (The standard 
FreeBSD port) version 3.36.

I created a wonderful ecu script which works if I can have someone
personally logged in as root (or a sudoer) but I cannot automate it
because when I put ecu (or an .sh script calling ecu) in the
crontab, ecu throws a fit.  [I have tried setting the TERM variable in
the .sh script and sending stdout to /dev/tty both without luck.]

I thought I would then try tip and converted my ecu script to perl to
interface with tip.  But rz does not want to work with tip even
separated from the perl script (the man page warned me ahead of time
"not designed for use with tip or cu").  When I try piping tip to rz, rz
starts sending headers "**B010000012f4ced" and will never initiate the
actual transfer.

Anyone have an idea for a work around either place?  A Perl 
solution would actually be preferable Thank you!
-- 
=============================================
Matt Rosenberg
Washington University School of Law
St. Louis, MO, USA

matt@www.wulaw.wustl.edu
http://www.wulaw.wustl.edu/~matt/
=============================================