Re: Rookie Perl Question
- From: Tad McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 15:30:12 -0500
swangdb <swangdb@xxxxxxxxxx> wrote:
I want to run some unix commands from a perl script.
$temp = "egrep -v \^# $ALIASES";
system($temp);
Have you read the documentation for the function that you are using?
This doesn't work, it tries to take the egrep output
system($temp);
Have you read the documentation for the function that you are using?
How can I make this work?
The way it says to in the documentation for the function that you are using.
perldoc -f system
This is *not* what you want to use to capture the output from a
command, for that you should use merely ...
--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.
- References:
- Rookie Perl Question
- From: swangdb
- Rookie Perl Question
- Prev by Date: Re: Rookie Perl Question
- Next by Date: Re: Rookie Perl Question
- Previous by thread: Re: Rookie Perl Question
- Index(es):
Relevant Pages
|