Date: Tue, 13 Nov 2001 11:11:28 +1100 From: Chris Aitken <chris@ideal.net.au> To: freebsd-newbies@FreeBSD.ORG Subject: Perl on FreeBSD Message-ID: <5.1.0.14.2.20011113110529.038222a8@mail.ideal.net.au> In-Reply-To: <3BF062E4.20156BC9@acuson.com> References: <258bb29fb0.29fb0258bb@drustvo-dns.si> <20011112231605.A16432@turtle.turtle>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20011113110529.038222a8>
