Differences

This shows you the differences between two versions of the page.

howtos:silentshutdown [2008/02/08 19:49] (current)
Line 1: Line 1:
 +====== POPFile Silent Shutdown Utility ======
 +==== (stop_pf.exe) ====
 +
 +This utility shuts POPFile down silently, without opening a browser window.
 +
 +The "Shutdown POPFile silently" shortcut on the Start Menu uses this utility with the ///SHOWERRORS// option and the UI port number selected during the installation. The utility can also be used in a batch file.
 +
 +Usage:
 +<code>
 +STOP_PF           <PORT>
 +STOP_PF  <REPORT> <PORT>
 +STOP_PF           <PORT> <PASSWORD>
 +STOP_PF  <REPORT> <PORT> <PASSWORD>
 +</code>
 +
 +where <PORT> is the port number used to access the POPFile User Interface (normally 8080).
 +
 +The optional <REPORT> value can be:
 +  * /SHOWNONE (no messages shown)
 +  * /SHOWERRORS (only error messages shown)
 +  * /SHOWALL (success or error messages always shown)
 +
 +(/SHOWNONE is the default setting used if <REPORT> is not supplied)
 +
 +The optional <PASSWORD> value is the password (no spaces allowed) for the POPFile User Interface. The "no spaces allowed" restriction is a limitation imposed by the current version of this utility.
 +
 +Running the utility without any parameters (e.g. by double-clicking the program's icon) will display a help screen.
 +
 +A success/fail error code is always returned which can be checked in a batch file:
 +
 +<code>
 +@ECHO OFF
 +START /WAIT STOP_PF /SHOWNONE 8080
 +IF ERRORLEVEL 1 GOTO FAILED
 +ECHO Shutdown succeeded
 +GOTO DONE
 +  *FAILED
 +ECHO **** Shutdown failed ****
 +  *DONE
 +</code>
 +
 +(The /WAIT option ensures that the batch file waits until this utility exits, otherwise the batch file will not test the utility's return code)
 
howtos/silentshutdown.txt · Last modified: 2008/02/08 19:49 (external edit)

Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.

Recent changes RSS feed Donate Driven by DokuWiki
The content of this wiki is protected by the GNU Fee Documentation License