From owner-freebsd-questions Thu Jun 14 17:27:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ideal.net.au (ion.ideal.net.au [203.20.241.5]) by hub.freebsd.org (Postfix) with ESMTP id 5C31C37B403 for ; Thu, 14 Jun 2001 17:27:23 -0700 (PDT) (envelope-from chris@ideal.net.au) Received: from helium.ideal.net.au (helium.staff.ideal.net.au [202.3.35.2]) by mail.ideal.net.au (8.9.3/8.9.3) with ESMTP id KAA43689 for ; Fri, 15 Jun 2001 10:24:54 +1000 (EST) (envelope-from chris@ideal.net.au) Message-Id: <5.1.0.14.2.20010615101342.0212ee28@mail.ideal.net.au> X-Sender: chris@mail.ideal.net.au X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Jun 2001 10:27:20 +1000 To: freebsd-questions@FreeBSD.ORG From: Chris Aitken Subject: Perl Script Suggestions In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 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 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. Thanks Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: chris@ideal.net.au phone: +61 2 4628 8888 fax: +61 2 4628 8890 -------------------------------------------- If the foo shits, call your sysadmin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message