home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / FORK.MAN < prev    next >
Text File  |  1997-07-05  |  2KB  |  54 lines

  1. +++Date last modified: 05-Jul-1997
  2.  
  3. FORK                     USER COMMANDS                   FORK
  4.  
  5.  
  6.  
  7. NAME
  8.       fork - fork output to multiple files, including console.
  9.  
  10. SYNOPSIS
  11.       [command |] fork [/?][/C] [filename.ext *filename.ext ...]
  12.  
  13. DESCRIPTION
  14.       fork reads in from stdin (pipe) and places the data into a
  15.       buffer. When the buffer becomes full, fork will do a full
  16.       write to all of the files presented on the command line.
  17.       Also, unless specifically disabled, output will also go to
  18.       the console.
  19.  
  20. OPTION
  21.       /?   Present help screen.
  22.       /C   Disable console output.
  23.  
  24. EXAMPLE
  25.       The following example will take the output of type and place
  26.       it into the files out1 out2 out3 and out4. The file out3 will
  27.       be overwritten, and no output will reach the console.
  28.  
  29.       type fork.c|fork out1 out2 *out3 out4 /c
  30.  
  31. DIAGNOSTICS
  32.       fork will complain about not being able to allocate memory,
  33.       but will not notice files that do not exist or cannot be
  34.       opened (will ignore them).
  35.  
  36. BUGS
  37.       A bug to many users will appear in the fact that switches cannot
  38.       be in the form of "-xxx". The character '-' is a valid filename
  39.       character, so I decided not to exclude it.
  40.  
  41. COMPILATION
  42.       The source is ANSI/ISO C, so any conforming compiler should be
  43.       able to compile without errors. MAXPATH is MSDOS Mix PowerC
  44.       dependent, but in case it is not defined, it is defined in the
  45.       header, fork.h. This macro should be changed to the current
  46.       compilers definition to better suit the platform (in other
  47.       words, #define MAXPATH _MAXPATH if _MAXPATH is your compilers
  48.       name for the maximum path allowed).
  49.  
  50. AUTHOR
  51.       Dustin Puryear <dpuryear@delphi.com>
  52.  
  53. Release 1.02    Last Change: June 8, 1994
  54.