RE: command line arg

2003-11-19 Thread Rob Dowell
Good point. -Original Message-From: David Liouville [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 19, 2003 8:55 AMTo: Rob Dowell; [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: Re: command line arg maby we have only part of informations and $ARGV[0] is use for

RE: command line arg

2003-11-19 Thread Rob Dowell
It should be :   $exy=$ARGV[0]; -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Tfbsr BertrandSent: Wednesday, November 19, 2003 7:03 AMTo: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: command line arg I am trying to pass a file ext

RE: Capturing the output of a sytem() command

2003-10-06 Thread Rob Dowell
I would use: my $cmd = 'cabarc.exe L '.$cabFile; my (@list) = qx/$cmd/; my $status = $?; HandleError($status,join(' ',@list)) if $status; foreach my $line (@list){ # Do something } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of George Gallen Sent:

RE: Capturing the output of a system() command

2003-10-06 Thread Rob Dowell
  I have used this method with great success:   my $cmd = 'cabarc.exe L '.$cabFile; my (@list) = qx/$cmd/; my $status = $?; HandleError($status,join(' ',@list)) if $status;   where HandleError is my own error handling routine.   >Am I able to capture the output of a system call? >Current