  Redirecting program output to a file? 
 The Question is:
 
Dear Wizards,
 
I want the screen output of an exe in a file, so I can process this file
with search or gawk for a certain part in a nightly batch routine.
When I (interactively) type 'run exe' or use a foreign command, I'm
getting 1 title line, 1 empty line and 4 lines of information.
I'm interested in one of the information lines.
There's no option in the exe for writing to a file and the source will not
be available to me.
 
I've tried the following, in getting the output to a file:
 
(0. Faq)
 
1. $ define sys$output file
   $ run exe
 
2. $ pipe run exe | copy sys$input file
 
3. $ open/write outf file
   $ run exe
   $ close outf
 
4. using a dcl batch file and submitting this one with /log
 
5. c.com with a run exe
   $ run/detach sys$system:loginout /input=c.com /output=c.log
 
 
The only result I'm getting out of the above attempts is the 1 title line !
 
Is there another option ?
 
Thanks in advance,
 
Dirk-Jan Marquart.
 
 
 
 The Answer is:
 
  You will want to contact the maintainer(s) if the image for assistance.
 
  Try:
 
    $ @TT:/OUTPUT=filename
    _$ RUN IMAGE
    _$ [CTRL/Z]
    $
 
  or consider using the caret notation on the PIPE command to redirect the
  output to a file.  When working with PIPE, please become familiar with
  the options available with PIPE, as well as with the difference between
  SYS$INPUT and SYS$PIPE.
 
