On 2018 Jun 19 21:06:48, you wrote to me:
MD>>> It should not be done in binkd, it is a job for a shell script.
ml>> that's what he's trying to do but the cron-executed shell script
ml>> cannot shut down binkd...
MD> Why? Isn't it possible to kill a process in OS/2?
it is possible but not all methods are clean... besides, it is much easier to
do something like this in a bat or cmd file...
rem create the binkdrunning semaphore
rem>binkdrunning.sem
binkd -C binkd.conf
del binkdrunning.sem
and then in another script...
rem create the disk-based binkd semaphore
rem>killbinkd.sem
:loop
iff exist binkdrunning.sem then
sleep 5
goto /i loop
endiff
del killbinkd.sem
rem now do our log maint
dobnklog process %YEAR% %MONTHNUM%
the above would also work in winwhatever as well as a multitasking DOS
environment... no special tools needed or wanted... just plain bat scripting...
)\/(ark
Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin' it
wrong...
... Apparently you aren't supposed to chug Scotch.
---
* Origin: (1:3634/12.73)
|