On Fri, 7 Nov 1997, Gerhard POUL wrote:
>If i make a shutdown pause the mud goes down but a banner will be taken on
>the same port...
>
>when i delete the pause file the banner will be destroyed and the mud goes
>online again... so you can tell the people who connect then that the mud
>is offline at the moment and that you are working on it...
You can probably do all this with just changes to the autorun script.
In pause:
# Save the results of the sign program to a variable:
PID=`sign 5000 text`
while pause
loop
# Out of pause
kill $PID (You'll get a message about 'Sign' 'started' not being
numbers but it will eventually get the right one,
just hope the port isn't a valid PID) :)
# continue
Or if you don't like the error message about 'sign' and 'started', you can
investigate string parsing tools.
Sign started on port 3000 (pid 7232).
1 2 3 4 5 6
From memory:
NPID=`echo $PID | cut -d ' ' -f 7 | cut -d ')' -f 1`
# NPID should now be 7232
kill $NPID
There are many ways to do it, that's just one quick way.
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST