Server Management |
Here's my sample code for remotely managing a WinNT-based development web
server, written specifically for allowing developers to shutdown services.
Please keep in mind that this is only a code example, and while it does work
on my site, there is no warranty implied, nor do I endorse this code as being
fit for merchantability for any purpose. |
If you are going to use this on your server, you will have to manually configure the scripts for your directory structure. Also be sure to create any directories which are in the script, but do not already exist on your system. The mngsvr.pl can be run as whatever user your webserver runs as, but needs to have write access to your "Jobs" directory. The dirmon.pl MUST run as system, or as an administrative account, which is why I say not to use it on production servers (I haven't tried to hack it, but I assume it is possible, since I did not do any char-parsing routine to kill pipes or backticks or other crap.). |
dirmon.pl |
mngsvr.pl |
Care to email me? amonotod@netsape.net |