Changes

Jump to navigation Jump to search

Mini Servers: Start Stop design notes

214 bytes added, 01:15, 24 November 2010
no edit summary
<=[http://azysijogen.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=&lt;span id="&quot;top"><&quot;&gt;&lt;/span>&gt;<&lt;div style="&quot;padding:0;margin:0; border-bottom:3px inset #000000">&quot;&gt;
{|
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
Mini Servers Start and Stop batch file design notes
|}
<&lt;/div>&gt;{| cellpadding="&quot;2"&quot;
|
__TOC__
Required information port and PID are easily accessible. It is possible to use batch file “tokens” this really is overkill hence use a pipe with find, makes the code a little easier to read for example:
<&lt;pre>&gt;
rem ## It exists is it running
SET /P pid=<&lt;udrive\usr\local\apache2\logs\httpd.pidnetstat -anop tcp | FIND /I " &quot; %pid%" >&quot; &gt;NUL
IF ERRORLEVEL 1 goto :NOTRUNNING
IF ERRORLEVEL 0 goto :RUNNING
<&lt;/pre>&gt;
'''''[[#top | Top]]'''''
=== Kill process ===
322

edits

Navigation menu