home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / FILE39.ZIP / README.OS2 < prev    next >
Text File  |  1993-04-11  |  2KB  |  49 lines

  1. This is the readme file for the port to OS/2 1.x--2.x and MSDOS of Ian
  2. Darwin's file(1) command.  The UNIX program attempts to determine the
  3. type of file based on the contents. A database of signatures (the magic(4)
  4. file) is used.
  5.  
  6. Darwin's version has several enhancements over the usual UNIX versions,
  7. including:
  8.  1. More flexible magicfile entries.
  9.  
  10.  2. An "ascii magic" routine for keywords which can appear anywhere in the
  11.     file.
  12.  
  13.  3. "-z" option will recursively unwind compress'd files to determine
  14.     the types.
  15.  
  16. This OS/2 port has an additional enhancement:
  17.  4. DosQ[uery]AppType is used to determine the type (MSDOS, OS/2, 32-bit,
  18.     etc.) of an executable or DLL.
  19.  
  20. QUICK START: Choose the appropriate executable (file.exe for OS/2 2.x,
  21. file-16.exe for OS/2 1.x--2.x, or file-dos.exe for MSDOS). Copy the
  22. file "magic" to one of the following locations:
  23.  * /etc/
  24.  * directory of the exectable
  25.  * a directory in PATH or DPATH
  26. or use the command-line option "-m" to specify the magicfile location.
  27.  
  28. Now try:
  29.  file *      or      file *.*
  30.  
  31.  
  32. Notes:
  33. 0. file v3 patchlevel9 is by Ian Darwin (darwin@cs.toronto.edu); see the
  34. readme file. 
  35.  
  36. 1. The OS/2 2.x version requires the DLLs from the EMX distribution. If you
  37. do not have these, either retrieve them from ftp-os2.nmsu.edu in 
  38. pub/os2/2.x/programming/emx-0.8f/emxdev.zip or use file-16.exe.
  39.  
  40. 2. The magicfile needs more work. There are some other suggestions in
  41. NOTES.OS2. Darwin collects magicfile entries.
  42.  
  43. 3. See the file NOTES.OS2 for additional information on the OS/2 and
  44. MSDOS ports. This is the first port to OS/2 and MSDOS; feedback is welcomed.
  45.  
  46. --
  47. Darrel Hankerson  hankedr@mail.auburn.edu  or  hank@ducvax.auburn.edu
  48. 11 April 1993
  49.