I'd suggest placing your pipeline of commands into a bash shell script and
running it manually from the command line and carefully observing it running.
That way you are then dealing with a known quantity outwith any Perl issues.
As someone else replied, consider using the "qx" command rather th
On Wed, Apr 15, 2009 at 10:41, John W. Krahn wrote:
> Chas. Owens wrote:
>>
>> On Wed, Apr 15, 2009 at 09:20, Rajini Naidu wrote:
>>>
>>> I am trying to execute the below line in the perl program and returns a
>>> value 0.
>>>
>>> my $test2 = "";
>>> my $include = "file";
>>>
>>> $test2 = syste
Chas. Owens wrote:
On Wed, Apr 15, 2009 at 09:20, Rajini Naidu wrote:
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}\'
On Wed, Apr 15, 2009 at 09:20, Rajini Naidu wrote:
snip
> $test2 = system("/usr/atria/bin/cleartool desc \$include | grep created |
> awk -F\" \" \'{print \$2}\' | cut -b 1-9 ");
snip
You might also want to look on CPAN[1] for interfaces to cleartool[2].
Many people use Perl with ClearCase, so th
essage
From: Owen
To: Rajini Naidu
Cc: beginners@perl.org
Sent: Wednesday, April 15, 2009 8:39:42 AM
Subject: Re: Syntax query
> Hi,
>
> I am trying to execute the below line in the perl program and returns
> a
> value 0.
>
> my $test2 = "";
> my $inclu
On Wed, Apr 15, 2009 at 09:39, Owen wrote:
snip
> You will probably need to specify the full path of grep and awk.
> (usr/bin/grep etc)
snip
Whereas that is not a bad thing to do, it is not his/her
current problem. The system function is returning 0
which means that it was successful. The probl
> 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 $tes
On Wed, Apr 15, 2009 at 09:20, Rajini Naidu wrote:
> 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}\'