home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PCBOARD
/
PCBUW10.ZIP
/
PCBUWAIT.DOC
< prev
next >
Wrap
Text File
|
1994-03-06
|
7KB
|
180 lines
PCBUtility Package
PCBoard UserNet Wait Utility v1.0
Version 1.0 03/06/94
Copyright (c) 1994
Casto Software
WARNING
-------
As with all new software it is * strongly * recommended that
you have a recent backup just in case.
LEGAL
-----
David Casto hereby disclaims all warranties relating to this
software, whether express or implied, including without
limitation any implied warranties of merchant ability or
fitness for a particular purpose. David Casto will not be
liable for any special, incidental, consequential, indirect or
similar damages due to loss of data or any other reason, even
if David Casto or an agent of David Casto has been advised of
the possibility of such damages. In no event shall David
Casto liability for any damages ever exceed the price paid for
the license to use software, regardless of the form of the
claim. The person using the software bears all risk as to the
quality and performance of the software.
You are free to distribute this software as long as there
are no modifications to any files in this archive.
What Is It?
-----------
This program is an event wait utility that will poll the
PCBoard UserNet.xxx file and hold a node down until the other
node reloads PCBoard or exits PCBoard. This is not a blind
wait utility as it will release the node only if the other
node is up or down (or if the MAX. time limit has been reached).
This program will return a DOS ERRORLEVEL of 10 if the node
it is waiting on is either up or down.
Installation
------------
You must have PCBUtility set up in order to use this
program. Use a text editor and edit your event batch file(s)
to resemble the ones below.
The following event examples assumes that node 1 is
running the system event on a three node system and:
Node 1 is in the C:\PCB directory
Node 2 is in the C:\PCB2 directory
Node 3 is in the C:\PCB3 directory.
In your system event batch file place these lines:
REM -- Make sure Node 2 dropped to the event --
PCBUWait Down:2:999
REM -- Make sure Node 3 dropped to the event --
IF ERRORLEVEL == 10 PCBUWait Down:3:999
REM -- IF Node 2 and Node 3 dropped to their events --
REM -- it is safe to run the system event. --
IF ERRORLEVEL == 10 GOTO EVENT
REM -- One of the Nodes did not drop to the event. --
REM -- Play it safe and skip the system event --
REM -- and reload this node. --
GOTO END
:EVENT
REM -- Node 2 and Node 3 are down --
REM -- It's safe to run the system event. --
REM * Your Event Process Goes Here *
:END
C:
CD\PCB
Board
In your node 2 event batch file place these lines:
REM -- Make sure Node 1 dropped to the event --
PCBUWait Down:1:999
REM -- If node 1 dropped to the event then wait --
REM -- otherwise bypass the next --
REM -- two lines and reload this node or reboot --
IF ERRORLEVEL == 10 PCBUWait UP:1:999
IF ERRORLEVEL == 10 GOTO RELOAD
REM -- Node 1 did not reload is it locked? --
REM -- If node 1 is locked you could use --
REM -- a reboot utility here. Or let it continue --
REM -- to reload this node. --
:RELOAD
REM -- If the ErrorLevel was 10 then node 1 --
REM -- reloaded so reload this node. --
C:
CD\PCB2
Board
In your node 3 event batch file place these lines:
REM -- Make sure Node 1 dropped to the event --
PCBUWait Down:1:999
REM -- If node 1 dropped to the event then wait --
REM -- otherwise bypass the next --
REM -- two lines and reload this node or reboot --
IF ERRORLEVEL == 10 PCBUWait UP:1:999
IF ERRORLEVEL == 10 GOTO RELOAD
REM -- Node 1 did not reload is it locked? --
REM -- If node 1 is locked you could use --
REM -- a reboot utility here. Or let it continue --
REM -- to reload this node. --
:RELOAD
REM -- If the ErrorLevel was 10 then node 1 --
REM -- reloaded so reload this node. --
C:
CD\PCB3
Board
Command Line Syntax
-------------------
PCBUWait Action:Node#:MaxSeconds
Action is either UP or DOWN
Node# is the node to poll (wait on)
MaxSeconds is the maximum seconds to wait
Examples:
PCBUWait Down:1:999
This node will wait 999 seconds for node 1 to
drop to the event. If node 1 drops to the
event before 999 seconds PCBUWait will return
a DOS ErrorLevel of 10.
PCBUWait Up:1:999
This node will wait 999 seconds for node 1 to
reload PCBoard. If node 1 reloads PCBoard
before 999 seconds PCBUWait will return a DOS
ErrorLevel of 10.
Summary
-------
If you would like to see further enhancements of
this program then please communicate them to me by
voice or BBS.
Voice: 614-882-0993
BBS: 614-882-0994