home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / coned02.zip / coned / README < prev    next >
Text File  |  1996-12-20  |  3KB  |  63 lines

  1. coned02 : non-interactive command-line config.sys editor
  2.  
  3. This is a command line config file editor that I whipped up in an evening.
  4. I'm releasing this into public domain in hopes that you might find it useful.
  5. The C++ source is embarassingly bad, but it works (or it seems to).  If you
  6. clean it up and make modifications, enhancements, I'd like to see them.  I
  7. guess I could have used sed or awk to do this, but STL makes this soooo
  8. much easier, it's almost fun.
  9.  
  10. This in combination with rexx scripts to add program objects is what I use to
  11. quickly get my system running quickly.  I've had to re-install OS/2 several
  12. times recently, and it ain't no fun.
  13.  
  14. Execute "coned" with no arguments for instructions.  See the example.cmd
  15. for how I use it.
  16.    coned config.tmp add path h:\usr\bin
  17.    coned config.tmp add libpath h:\usr\dll
  18.    coned config.tmp add dpath h:\usr\som\msg
  19.    coned config.tmp add var tmp=h:\tmp
  20.    coned config.tmp add run h:\usr\bin\telnetd.exe
  21.  
  22. When adding a path, libpath or dpath compenent, coned will append if it
  23. doesn't exist, or replace it if it does exist.
  24. When adding a variable It will replace it if it exists, or append to the
  25. end of the file it it doesn't.  Note that it considers anything with an
  26. = sign to be a variable.  So, MAXWAIT=1 and SET INCLUDE=h:\include are
  27. both considered variables.  If the variable doesn't exist, it will be appended
  28. in the form of "SET VAR=XXX".
  29.  
  30.  
  31. Source is included.  Compiled with Watcom 10.5, STL is required, and you 
  32. may need to tweak the include files.
  33.  
  34. Known problems:
  35.  It doesn't edit every aspect of the config file.  BASEDEV and DEVICE lines in
  36. particular, but I don't see a need for that.
  37.  I've only tested the add function.  The get and del functions may or may not
  38. work.
  39.  Some inconsistancies in handling different lines.
  40.  
  41. No guarantees, warrantees, or liability assumed for use or misuse of this
  42. software.  But I welcome comments and suggestions.
  43.  
  44. You have the source... Read it.
  45. You have backups... Don't you?
  46.  
  47. --FUTURE--
  48. I thought it might be nice if a reverse process were available to be able
  49. to convert an existing config.sys into a script that could be used to 
  50. reconstruct the file.  Maybe I'll do this if I feel motivated to.  What do you
  51. think?
  52.  
  53. Wouldn't it be nice if Warp had a standardized _SYSTEM_ install/uninstall
  54. like AIX does (Warp4 seems to have something though...)?
  55.  
  56. --REVISIONS--
  57. coned01:  oops.  I made a "harmless" change before I uploaded and forgot
  58. to test it.  This version couldn't add any variables.  Software engineering
  59. at its finest.
  60.  
  61. Eddy Kim
  62. ehkim@ibm.net
  63.