home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / s2kv201.zip / LOGGER.TXT < prev    next >
Text File  |  2001-10-15  |  2KB  |  45 lines

  1.  
  2.  
  3.  
  4. There is a program in the sio2k distribution zip named logger.exe.  This
  5. program is intended to provide information and logging services after boot
  6. time.  This program can generate an enormous amount of text, so you
  7. probably want to use logger.exe during debugging only.  The logging process
  8. also takes processor time and may interfere with high speed communications.
  9.  
  10. A simple way to see logger.exe in action is to go to an OS/2 command prompt
  11. and execute "LOGGER COM1" without the quote marks.  It will just sit there
  12. (for now) so do not be concerned.  Then go the another OS/2 command prompt
  13. and execute MODE COM1.
  14.  
  15. The basic way to execute logger is to type LOGGER COM1 at an OS/2 command
  16. line prompt.  If you want the logging information placed into a disk file
  17. then execute LOGGER COMn x:\path\FILENAME.LOG.  In this case the
  18. information is both displayed and placed into the file FILENAME.LOG.  Note,
  19. DO NOT use names like com1.log, as OS/2, and especially dos/win sessions
  20. become confused when a file name is the same as a device name.  Use a name
  21. like LOGCOM1.LOG so the system does not get confused.
  22.  
  23. I coded logger.exe to be re-entrant, but have not tested it.  If the re-
  24. entrant code works, you can have multiple copies of logger.exe running to
  25. monitor multiple ports at the same time.
  26.  
  27. There is some information available to logger only once, when a comm port
  28. is opened the first time.  Catching the information before the port is
  29. opened the first time may be confusing.  For example, if you have a RUN
  30. command in your config.sys that accesses the comport, like
  31. RUN=x:\path\MODE.COM COM1, then it is NOT possible for logger.exe to catch
  32. the initial information.
  33.  
  34. Assuming the port is not accessed via config.sys, then a good way to insure
  35. you catch the initial information is to start logger in your startup.cmd
  36. file.  If you do not have a startup.cmd file, then create it in the root
  37. directory of your OS/2 boot drive.  The command I use in my startup.cmd
  38. file is:
  39.  
  40. start /c /win /min c:\sio2k\logger com1 c:\sio2k\logcom1.log
  41.  
  42. The log file, or the displayed information can tell you why you are getting
  43. errors like "not ready" or "in use".
  44.  
  45.