Date: Mon, 12 Nov 2001 19:23:10 -0500 From: "Andre` Niel Cameron" <AndreC@Axxs.net> To: <freebsd-questions@FreeBSD.ORG>, "Chris Aitken" <chris@ideal.net.au> Subject: Re: Perl on FreeBSD Message-ID: <016a01c16bd9$601c57b0$a50410ac@olmct.net> References: <5.1.0.14.2.20011113111839.03949520@mail.ideal.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <chris@ideal.net.au> To: <freebsd-questions@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016a01c16bd9$601c57b0$a50410ac>