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