Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2001 21:22:22 -0500 (CDT)
From:      Don Read <dread@texas.net>
To:        Chris Aitken <chris@ideal.net.au>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: Perl Script Suggestions
Message-ID:  <XFMail.010614212222.dread@texas.net>
In-Reply-To: <5.1.0.14.2.20010615101342.0212ee28@mail.ideal.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <ctrl z>
> 

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010614212222.dread>