command execution

2006-07-24 Thread Sayed, Irfan \(Irfan\)
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.

command execution

2007-02-02 Thread Sayed, Irfan \(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

Re: command execution

2006-07-24 Thread Michael Gale
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

Re: command execution

2006-07-25 Thread Prabu
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

Re: command execution

2006-07-25 Thread David Romano
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'

Re: command execution

2007-02-02 Thread kilaru rajeev
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

Re: command execution

2007-02-02 Thread kilaru rajeev
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

Re: command execution

2007-02-03 Thread Klaus Jantzen
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

Backticks Command Execution

2001-11-22 Thread Veeraraju_Mareddi
$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

Re: Backticks Command Execution

2001-11-22 Thread Mark Veinot
- 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

command execution & timeout in Windows

2002-12-05 Thread Venkatesan.Saranatha
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

Remote command execution on NT and Solaris?

2001-06-12 Thread Michael Dube
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

RE: Remote command execution on NT and Solaris?

2001-06-12 Thread Steve Howard
---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

RE: Remote command execution on NT and Solaris?

2001-06-13 Thread ggage
-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