Sayed, Irfan (Irfan) wrote:
Hi All,
I am executing following script. but even if the command execution fails
it prints as success exit status = 0
can anybody please help
Regards
Irfan.
use strict;
use warnings;
my $CT = '/usr/atria/bin/cleartool';
print " Creating the view for VB \n";
my $c
se elaborate what is the meaning of $? >>8;
Regards
Irfan.
--
*From:* kilaru rajeev [mailto:[EMAIL PROTECTED]
*Sent:* Friday, February 02, 2007 8:23 PM
*To:* Sayed, Irfan (Irfan)
*Subject:* Re: command execution
Is it working, Irfan?
Rajeev
On 2/2/07, kilar
Hi Irfan,
You can capture the exit status in the following way.
system("command");
$ExitStatus = $? >>8;
Regards,
Rajeev kilaru
On 2/2/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote:
Hi All,
I am executing following script. but even if the command execution fails
it prints as success ex
Hi Irfan,
On 7/24/06, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote:
Hi All,
I am executing following command
` $MT chreplica`;
I need to find out wheather this command is executing properly or not.
From what I remember `` gives the output of the command pass in, and
since it looks like you'
Sayed, Irfan (Irfan) wrote:
Hi All,
I am executing following command
` $MT chreplica`;
I need to find out wheather this command is executing properly or not.
If it's executing properly then i need to print the message saying that
" command executed successfully"
Can anybody please hel
What about:
my $cmd = "ls -l";
system($cmd) == 0 or &error_msg("Could not run command");
Where error_msg is a function that takes a argument.
Michael
Sayed, Irfan (Irfan) wrote:
Hi All,
I am executing following command
` $MT chreplica`;
I need to find out wheather this command is exe