develooper Front page | perl.trainers | Postings from April 2009

Syntax query

Thread Next
From:
Rajini Naidu
Date:
April 15, 2009 06:20
Subject:
Syntax query
Message ID:
134497e40904150620x491f8d62s9301d38d556de99c@mail.gmail.com
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


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About