From my Kill http server object:
/c pstat /c | grep HTTPDL & pstat /c | grep HTTPDL && pkill httpdl & delay 3
Thinking about this, it was probably written well over 10 years ago and could be better written using go -cp rather than pstat and grep.
You may be right about that, but pstat & grep seem to be two things that just about any OS/2 box probably has, so much better chance of that working for a wider range of folks!
Thank you for that last kill statment, I would have never figured it out.
So what I have now is the following:
1) NETQ and HTTP servers start up with a minimized window
- object parameter string is: '/k G:\code\tools\Ibmcpp\BIN\SETENV.CMD /min G:\netqos2\help_server_start.cmd'
2) NETQ and HTTP servers stop, which also closes the previously minimized START window
- object parameter string is: '/k G:\code\tools\Ibmcpp\BIN\SETENV.CMD G:\netqos2\help_server_stop.cmd'
End Result => clean, I end up right where I started!
FYI - for anyone else that wants something like this:
1) help_server_start.cmd
/* This script will START the NETQ help system */
'@echo off'
/* setup the environment - based on setenv2.cmd */
'SET NETQ11MAIN=G:\Netqos2'
'SET PATH=%NETQ11MAIN%;%PATH%'
'SET DPATH=%NETQ11MAIN%;%DPATH%'
'SET BEGINLIBPATH=%NETQ11MAIN%'
'@echo on'
/* start the netq server */
'netq start server'
/* now start the HTTP deamon serving the help info */
'G:\NETQOS2\HTTPDL.EXE -r g:\netqos2\httpd.cnf'
/* exit automatically - close the minimized window - once the STOP script runs */
'exit'
2) help_server_stop.cmd
/* This script will STOP the NETQ help system */
/* stop the netq server */
'netq stop server'
/* stop the HTTP server */
'/c pstat /c | grep HTTPDL & pstat /c | grep HTTPDL && pkill httpdl'
/* exit */
'exit'
EDIT
====What version of GO is the latest one? I have 1.5 here which seems to be circa '95...it has problems with -sm:
[G:\netqos2]go sm
GO! v1.5 - (c) 1993-95 by Carsten Wimmer <cawim@train.oche.de>
List of Shared Memory:
Handle Selector SegmentSize Ref Name
------ -------- ----------- ----- ---->
Message file not found.
SYS1808:
The process has stopped. The software diagnostic
code (exception code) is 0005.