🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.support.os2
Article #1097

Re: Killing CMD.EXE windows after the command file has completed

#1097
From: Dave Liquorice
Date: Thu, 14 Dec 1995 00:00
36 lines
2280 bytes
In article <767584008wnr@hi-q.demon.co.uk>
           mgale@hi-q.demon.co.uk "Mark S. Gale" writes:

> In article: <818442354snz129.os2.7@artin.glassnet.com>  Clive Humble 
> <chumble@artin.glassnet.com> writes:
>
>> Bung the output of netstat -s (and other command switches) down a queue
>> for a rexx script to see if the link is active or not.  Kill the bugger if
>> required.
>
> I'll have a look at this as well, once I can understand REXX. Actually, 
> it might be rather neat to include the test in GETMAIL itself, then it
> could close itself when the connection closes. Now, I wonder if that's
> possible.

I've been peering as well as the GetMail remaining lurking annoys me. 
The RXSOCK package has a cmd script to kill a given socket, Get Mail 
closes if its socket is closed.

One tricky bit is finding out the socket number but GetMail reports 
that down the Message Queue. Taking a look at DIS2.CMD, a control
program that monitors these message queues from SendIt, NewNews and
GetMail. It is easy enough to capture the GetMail socket and feed it to
KILLSOCK.

The bit I'm stuck on now is the SLIPWAIT in DIS2, I can't find a PPP 
equivalent. It's needed to stop the control program starting up SendIt 
and NewNews untill the PPP link is up and running. I've managed to get 
PPP to load up and dial/login (once I corrected a typo in my password!) 
but nothing else seems to be able to talk over the link.

Anyone got any bright ideas on the last two, even guidance on the format 
of the ppp.cfg file would be useful.

Cheers
Dave.
Technical Details
Message-ID: <818973487snz129.os2.7@nexus.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <474203771wnr@geordie.demon.co.uk> <818442354snz129.os2.7@artin.glassnet.com> <767584008wnr@hi-q.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 104dc3,634ae22298c200df
X-Google-Attributes: gid104dc3,public
From: Dave Liquorice <allsorts@nexus.demon.co.uk>
Subject: Re: Killing CMD.EXE windows after the command file has completed
Date: 1995/12/14
Message-ID: <818973487snz129.os2.7@nexus.demon.co.uk>
X-Deja-AN: 121850790
x-nntp-posting-host: nexus.demon.co.uk
references: <474203771wnr@geordie.demon.co.uk> <818442354snz129.os2.7@artin.glassnet.com> <767584008wnr@hi-q.demon.co.uk>
x-smtp-posting-host: post.demon.co.uk [Thu, 14 Dec 95 20:39:44 GMT]
organization: Freelance Broadcast Sound Engineer
reply-to: allsorts@nexus.demon.co.uk
newsgroups: demon.ip.support.os2