RE: Capturing the output of a system() command

2003-10-08 Thread Erich C. Beyrent
> Am I able to capture the output of a system call? > Currently, I route the output to a temporary file, > then read the contents in when the call is done. > I'd rather not make a temp file. > George Hi there, Here is what I do: my $cmd = `base64 -e ASCIIFILE -`; } open(APP, "$cmd 2>&1 |") o

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