home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / misc / 29936 < prev    next >
Encoding:
Text File  |  1992-09-12  |  3.2 KB  |  82 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!csus.edu!netcom.com!xtifr
  3. From: xtifr@netcom.com (Chris Waters)
  4. Subject: HOW TO: run the WPS as a (killable) child process
  5. Message-ID: <sywn95m.xtifr@netcom.com>
  6. Date: Sat, 12 Sep 92 19:29:07 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <Yeg0ve_00WBMQ9W25r@andrew.cmu.edu> <1992Sep11.164048.10925@nmt.edu>
  9. Lines: 71
  10.  
  11. In <1992Sep11.164048.10925@nmt.edu> jreynold@nmt.edu (John Reynolds) writes:
  12.  
  13. >ps. I HAVE NOT DONE THIS, DO NOT KNOW IF IT'S TRUE, BUT...
  14. >I read here, that someone runs WPS as a child process (the parent I don't
  15. >know) so that if/when WPS crashes, he can kill it and start over. I don't
  16. >know if this is possible or smart, but nonetheless. I'm looking for answers
  17. >to these annoying crashes.
  18.  
  19. I suspect that you may be referring to me.  I've been running without
  20. the WPS for several months, and am basically very happy with this
  21. configuration (although I wish that IBM would change a few things around
  22. to make this work a little better).  For people who are primarily
  23. interested in OS/2 as a multitasking, protected, 32-bit operating
  24. system, rather than as a gooey WIMP-interface system, this is the way to
  25. go, IMO.
  26.  
  27. The basics are covered in the FAQ, but there are no details.  So, I'll
  28. post some explanations of my setup, and some of the tricks I've
  29. discovered in the course of using OS/2 2.0 without the Workplace Shell.
  30.  
  31. First, how to boot (this is covered in the FAQ, but I'll review it):
  32.  
  33. In CONFIG.SYS, there is a line that says:
  34.  
  35. SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
  36.  
  37. change this to say:
  38.  
  39. SET RUNWORKPLACE=C:\OS2\CMD.EXE
  40.  
  41. You can actually use any program that allows you to run other programs
  42. here.  For example, and alternate shell, like 4OS2.  Do *not* change the
  43. line that says, "PROTSHELL=C:\OS2\PMSHELL.EXE", or you will lose the
  44. ability to run DOS, Windows, and PM apps.
  45.  
  46. 4OS2 allows you to define aliases and executable extensions[1] which
  47. makes the loss of the WPS a lot easier to live with.  I strongly
  48. recommend this program[2].
  49.  
  50. Now, the question is, what if you need to load the WPS for some reason? 
  51. You *can* just type PMSHELL at the command prompt (or better yet, type
  52. "start pmshell").  But if you do this, you will not be able to kill it.
  53. So, what to do?
  54.  
  55. The answer is, start a new CMD.EXE (or 4OS2.EXE) session, and start
  56. PMSHELL from that.  When you launch the WPS, the running copy of CMD.EXE
  57. will shrink to an icon on the desktop.  You can close this icon, and it
  58. will kill the WPS.  Simple, no?  Here's a quickie .CMD file that will
  59. automate the process for you:
  60.  
  61. --- WPS.CMD --- cut here ---
  62. @echo off
  63. if "%1" == "DOIT" goto doit
  64. start %0 DOIT
  65. goto done
  66. :doit
  67. pmshell
  68. :done
  69. --- cut here ---
  70.  
  71. Just type WPS to invoke this (recursive and kinda tricky) script.
  72.  
  73. The advantages of this setup are:
  74.  
  75. 1.  OS/2 boots *much* faster.
  76. 2.  Lots more memory available for apps, performance is snappier.
  77. 3.  Don't have to open four different folders just to get a command-line.
  78. 4.  Impress your friends, and wow your neighbors.  :-)
  79. -- 
  80. Chris Waters    | the insane don't | NOBODY for President!
  81. xtifr@netcom.COM| need disclaimers | Because Nobody's perfect!!
  82.