Syntax query
[email protected] (Rajini Naidu) Wed, 15 Apr 2009 18:50:01 +0530
| Newsgroups | perl.trainers |
|---|---|
| Message-ID | <[email protected]> |
--0016368e1d220b9934046797cee2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi,
I am trying to execute the below line in the perl program and returns a
value 0.
my $test2 = "";
my $include = "file";
$test2 = system("/usr/atria/bin/cleartool desc \$include | grep created |
awk -F\" \" \'{print \$2}\' | cut -b 1-9 ");
The value returned by $test2 is 0. I suspect grep and awk commands are not
getting executed.
Is there any thing wrong in the syntax ????
-Rajini
--0016368e1d220b9934046797cee2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>Hi, </div>
<div>=A0</div>
<div>=A0I am trying to execute the below line in the perl program and retur=
ns a value 0. </div>
<div>=A0</div>
<div>my $test2 =3D "";</div>
<div>my $include =3D=A0 "file";</div>
<div>=A0</div>
<div>$test2 =3D system("/usr/atria/bin/cleartool desc \$include | grep=
created | awk -F\" \" \'{print \$2}\' | cut -b 1-9 "=
;);</div>
<div>=A0</div>
<div>The value returned by $test2 is 0. I suspect grep and awk commands are=
not getting executed. </div>
<div>Is there any thing wrong in the syntax ????</div>
<div>=A0</div>
<div>-Rajini=A0</div>
<div>=A0</div>
<div>=A0</div>
--0016368e1d220b9934046797cee2--