From owner-freebsd-newbies Mon Nov 12 16:11:44 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from mail.ideal.net.au (ion.ideal.net.au [203.20.241.5]) by hub.freebsd.org (Postfix) with ESMTP id ACCE037B418 for ; Mon, 12 Nov 2001 16:11:37 -0800 (PST) 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 LAA66539 for ; Tue, 13 Nov 2001 11:11:29 +1100 (EST) (envelope-from chris@ideal.net.au) Message-Id: <5.1.0.14.2.20011113110529.038222a8@mail.ideal.net.au> X-Sender: chris@mail.ideal.net.au X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 13 Nov 2001 11:11:28 +1100 To: freebsd-newbies@FreeBSD.ORG From: Chris Aitken Subject: Perl on FreeBSD In-Reply-To: <3BF062E4.20156BC9@acuson.com> References: <258bb29fb0.29fb0258bb@drustvo-dns.si> <20011112231605.A16432@turtle.turtle> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: chris@ideal.net.au phone: +61 2 4628 8888 fax: +61 2 4628 8890 __-----------------------------------------__ # ln -s /dev/null /bin/laden If you don't like my typing, all flames to /bin/laden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message