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 help me.
Regards
Irfan.
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 $cm
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
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
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'
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 fail
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
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
$pat = `echo \%path\%`
This should direct output of the echo command to $path variable.
But this is not happening,but it displays output to the screen instead.
I ran this script in around 200 systems(windows 95 + windows 98),130 out of
them produced the required output ,as remining failed.
Wha
-
From: "Veeraraju_Mareddi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 9:36 AM
Subject: Backticks Command Execution
> $pat = `echo \%path\%`
>
> This should direct output of the echo command to $path variable
Hello List,
I am trying to a write a simple subroutine in perl to take a command as
argument, execute the command, if the command does not complete with in
specified timeout interval, kill the process. If the program get completed
within timeout interval, then return its output to the calling rou
ruct each
of the other systems to run their initialization script.
Is there a PERL module available which will facilitate remote command
execution for NT and Solaris?
Any suggestions on the best way to do this?
Thanks,
Mike
---Original Message-
From: Michael Dube [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 11:19 AM
To: Perl Beginners List
Subject: Remote command execution on NT and Solaris?
I have just begun a project that will involve automated state setting on
multiple machines across multiple platf
-Original Message-
From: Michael Dube [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 11:19 AM
To: Perl Beginners List
Subject: Remote command execution on NT and Solaris?
I have just begun a project that will involve automated state setting on
multiple machines across multiple
14 matches
Mail list logo