From owner-freebsd-questions Mon Nov 12 16:25:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gaia.host4u.net (gaia.host4u.net [209.150.128.48]) by hub.freebsd.org (Postfix) with ESMTP id D66C037B426 for ; Mon, 12 Nov 2001 16:24:51 -0800 (PST) Received: from andre ([216.71.43.117]) by gaia.host4u.net (8.8.5/8.8.5) with SMTP id SAA23261; Mon, 12 Nov 2001 18:11:32 -0600 Message-ID: <016a01c16bd9$601c57b0$a50410ac@olmct.net> Reply-To: "Andre` Niel Cameron" From: "Andre` Niel Cameron" To: , "Chris Aitken" References: <5.1.0.14.2.20011113111839.03949520@mail.ideal.net.au> Subject: Re: Perl on FreeBSD Date: Mon, 12 Nov 2001 19:23:10 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 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, i'm no guru but you could do this: echo blah blah blah > blah.txt then use perl to read the text. Regards, Andre` C. Technical Support ԿԬ ---------------------------------------------------------------------------- - Visit our support manual at http://supportmanual.com/ ----- Original Message ----- From: "Chris Aitken" To: Sent: Monday, November 12, 2001 7:19 PM Subject: Perl on FreeBSD > Hi everyone.... > > > I have a curley on I havent been able to work out. > > What I want to be able to do is take the output of a FreeBSD command, and > pipe the output to a perl script so I can use that data.... > > For example. If I ran the following at command line, > > # echo "Blah Blah Blah" | perlscript.pl > > How would I be able to print "Blah Blah Blah" to the screen from the perl > script. I am only new to perl and have been doing alot of funky mrtg stuff > opening files and commands within the perl script and taking the output, > but im stumped on how to pipe data to a perl script and use that data in > the perl script. > > > Any assistance would be great. > > > > Thanks > > > Chris > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message