Webrick: save on shutdown

M

Maarten Boonen

Hi all,

I am running a HTTPServer and use my browser to change some data that's
loaded from an XML file. Now, I'm saving the data back to the same file
each time a change is made to it, but I like to do this only once, when
I shutdown the server (which I do by closing the Windows command
prompt). I tried redefining the shutdown procedure, but no luck there.
Is there a simple way to do this?

Thanks in advance,
Maarten
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,270
Latest member
TopCryptoTwitterChannels_

Latest Threads

Top