Article View: comp.os.os2.programmer
Article #3460Getting DOS boxes to talk to OS/2
From: David Burton
Date: Tue, 12 Jan 1993 10:16
Date: Tue, 12 Jan 1993 10:16
32 lines
1796 bytes
1796 bytes
In article <C0Mn3A.7zt@undergrad.math.waterloo.edu>
papresco@cantor.math.uwaterl
>What I'm asking really isn't so complex...I want to start an OS/2
>editor from my DOS mail reader. An OS/2 unzipper from my DOS term
>program.
>I don't mind setting up complex .cmd files for it. I don't mind
>compiling something special in DOS.
>Is there any, any way to launch an OS/2 program from a DOS box. Or is
>there any way to signal a "lurking" OS/2 program to wake up from a DOS
>box. Or is the only way to make a batch file that polls the file
>system for a flag (YUUUUCH!)?
A DOS program (running in a DOS box) can talk to a lurking OS/2 program
via a named pipe. The latest version of my HOTKEY program, which I
wrote with Peter Fitzsimmons, does exactly that. To enable hot-keys
from DOS boxes, a small TSR is installed which watches for the hot-keys.
When it sees one, it opens a named pipe ("\PIPE\HOTKEY" in this case),
and writes a short message to it. That wakes up the lurking OS/2
HOTKEY program via its named pipe server code, and it then does the
hot-key operation (switch to the selected session).
I'm new to the Internet stuff, and haven't yet bothered to figure out
how to send files. However, if you want HOTKEY (with source for all
except the TSR), you can get it from Bix or my BBS.
The file name is HOTKEY12.ZIP (earlier versions *won't* do!).
On Bix, it is in the IBM.OS2/LISTINGS area.
My BBS is at 919-233-0106.
I hope this helps.
-Dave
Technical Details
Message-ID:
<6De0wB3w165w@salzo.Cary.NC.US>Path:
arc1-ca.pugleaf.net!sparky!uunet!psinntp!dg-rtp!salzo!dburtonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!dg-rtp!salzo!dburton From: dburton@salzo.Cary.NC.US (David Burton) Newsgroups: comp.os.os2.programmer Subject: Getting DOS boxes to talk to OS/2 Message-ID: <6De0wB3w165w@salzo.Cary.NC.US> Date: Tue, 12 Jan 93 05:16:28 EST Organization: SalzoBoard BBS Lines: 32