From owner-freebsd-questions Thu Jun 14 19:22:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mw2.texas.net (mw2.texas.net [206.127.30.12]) by hub.freebsd.org (Postfix) with ESMTP id 2F99737B405 for ; Thu, 14 Jun 2001 19:22:29 -0700 (PDT) (envelope-from dread@texas.net) Received: from localhost.texas.net (tcnet27-004.austin.texas.net [209.99.98.67]) by mw2.texas.net (8.11.1/8.11.1) with ESMTP id f5F2MHv21593; Thu, 14 Jun 2001 21:22:17 -0500 (CDT) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <5.1.0.14.2.20010615101342.0212ee28@mail.ideal.net.au> Date: Thu, 14 Jun 2001 21:22:22 -0500 (CDT) From: Don Read To: Chris Aitken Subject: RE: Perl Script Suggestions Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 15-Jun-01 Chris Aitken wrote: > Hi everyone..... > > Ive been doing some research into my little script delemma and im wondering > if anyone has any suggestions. Basically, what I need is a nice simple perl > script I can execute like the following - > > % newscript abcdefg > > and basically making it take the first argument after the script, and spawn > off the following lines to execute the cu program - > > % cu -l /dev/cuaa1 -s 38400 > > abcdefg > perldoc -f system perldoc -f foreach > > Im a novice at this stuff, but if I could see some sort of examples on how > to do this, I can work the rest out. In the first part of the proposed perl > script, it will access an sql database, get the needed data etc etc. I know > how to do the sql stuff, but the actual accessing cu and issuing it the > commands, the data and the CTRL Z command is baffling me. > Ctrl-Z ? -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message