home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
3rdparty.zip
/
mail.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-02-17
|
2KB
|
47 lines
/*****************************************************************************/
/* Mail.Cmd v1.0 with recycle options by Koen Koster alias CliP on IRC */
/*****************************************************************************/
/* This Mail.Cmd will recycle multiple gatekeeper tasks so that only 1 */
/* GateKeeper task is started which will handle all GK requests :-) */
/*****************************************************************************/
/******************* < Begin Sysop Configuration Section > *******************/
AdeptDirectory = 'd:\adept' /* change drive */
BusyFlag = 'd:\adept\gatekpr.busy' /* change drive */
RunningFlag = 'd:\adept\gatekpr.running' /* change drive */
/******************** < End Sysop Configuration Section > ********************/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysloadFuncs'
call SysLoadFuncs
curDir = Directory(AdeptDirectory)
call RxFuncAdd 'SysFileTree','RexxUtil','SysFileTree'
rc = SysFileTree(RunningFlag,"stem",'F')
if (stem.0 \= 0) then do
address cmd '@echo gatekeeper is busy >>'BusyFlag
call back
end
else
address cmd '@echo gatekeeper is running >>'RunningFlag
call running
end
running:
rc = SysFileTree(BusyFlag,"stem",'F')
if (stem.0 \= 0) then do
address cmd '@del 'BusyFlag
end
/* address cmd '@set pktsort=-ld:\adept\logfiles\pktsort.log' */
address cmd '@GateKpr.Exe GateKpr.Ctl A NP'
/* address cmd '@PMImake.Exe' */
rc = SysFileTree(BusyFlag,"stem",'F')
if (stem.0 \= 0) then do
signal running
end
else
address cmd '@del 'RunningFlag
back:
exit