[mod.computers.vax] user message...

BRENT@uwovax.UWO.CDN (Brent Sterner) (01/21/87)

   I have an application involving a DAEMON.  I would like the DAEMON
to be able to get a message through to a process regardless of whether
it is interactive or batch.  Is there a "good-programming" way to issue
a message to the SYS$OUTPUT for a specific process (based on the pid)?
IE to either a terminal or to a disk file, the latter which would be
open by the owning process.  Hope this isn't too much off the wall.  B.
--
Brent Sterner                                    ***********************
Lord Protector,  d i g i t a l  Systems          *                     *
Computing & Communications Services              *   ...but my OTHER   *
Natural Sciences Building                        *   computer runs     *
The University of Western Ontario                *   UNIX...           *
London, Ontario, Canada  N6A 5B7                 *                     *
Telephone (519)661-2151 x6036                    ***********************
Network     <BRENT@uwovax.UWO.CDN>  ! VAX 8600
            <A105@UWOCC1.BITNET>    ! IBM 4341

LEICHTER-JERRY@YALE.ARPA (01/22/87)

       I have an application involving a DAEMON.  I would like the DAEMON
    to be able to get a message through to a process regardless of whether
    it is interactive or batch.  Is there a "good-programming" way to issue
    a message to the SYS$OUTPUT for a specific process (based on the pid)?
    IE to either a terminal or to a disk file, the latter which would be
    open by the owning process.  Hope this isn't too much off the wall.  B.

Not, in general, without the cooperation of the "receiving" process.  VMS
processes are pretty independent creatures, and it's quite difficult to do
much to one "from the outside" - like write to one of its files.  The ability
to do broadcasts is specific to the terminal driver, and can't be made to
work for disk files.

One exception:  If the message indicates a fatal error of some sort, so that
you are willing to have the receiving image exit, you can (with suitable pri-
vilege, of course) use the FORCEX (Force Exit) system service to cause another
process's current image to exit with a final status of your choosing.  DCL
will then insert the message text corresponding to that status - assuming it
is in the system message file, or some message file set for the receiving
process with SET MESSAGE - in the output.
							-- Jerry
-------