TIP: Click on subject to list as thread! ANSI
echo: os2bbs
to: Steve Switzer
from: Peter Knapper
date: 1999-01-06 14:59:54
subject: OS/2 Event utility?

Hi Steve,

 SS> Could you please send me an example of this? I have no idea how to use
 SS> REXX. Do you compile it? I'm duhhhh. :)

Writing REXX code is similar to batch files, yet it is much more powerful.
When you first run a .CMD file that starts in line 1 with /*, then it is
automatically "compiled" into "P Code", and the "P
Code"runs as a sort of compiled executable. If you update the .CMD
file, then the "P Code" is rebuilt, otherwise next execution just
the "P Code" runs. Check out the REXX info included with OS/2 and
also the OS2REXX Echo for more info.

-> Then look into using SEMAPHORES or PIPES for triggering the events
-> rather than flag files. This means SysSleep() becomes redundant and
-> your system becomes a true event triggered environment.

 SS> The only thing I can do is a flag file... because half of the triggers
 SS> to this window will be coming from machines other than OS/2 computers...
 SS> so named pipes won't work.

Even DOS sessions can write to PIPES! To DOS, a PIPE is a
"special" type of file that can be passed over a NETBIOS network.
An example of a command sent via a Pipe could be -
        Echo MAILIN >\PIPE\MAILPROC
In this case MAILPROC is the name of the SERVER listening at the other end
of the PIPE. The ECHO command would send the string "MAILIN" to
the Server.

You may find It well worth your time investigating this approach.

Regards.......pk.

--- Maximus/2 3.01
* Origin: === NZMC Maxie BBS. Ak, NZ +64 9 444-0989 === (3:772/1)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 284 371 634/397 635/444 506 728
SEEN-BY: 639/252 670/218
@PATH: 772/1 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.