Hello Steven,
Unless you have modified setenv.cmd, it's going to logically end with
start G:\netqos2\help_server_start.cmd
exit
...
No, not modified other than parhaps me adding that 'mode 80,60' line, and the contents of the original CMD which I am still using are as follows:
@ECHO OFF
mode 80,60
SET CXXMAIN=G:\code\tools\Ibmcpp
rem ***********************************************************
rem IBM C and C++ Compilers for OS/2 environment variable settings
rem Licensed Materials - Property of IBM
rem (C) Copyright IBM Corp. 1991, 1997 All Rights Reserved
rem ***********************************************************
SET BEGINLIBPATH=%CXXMAIN%\DLL;%BEGINLIBPATH%
SET DPATH=%CXXMAIN%\HELP;%CXXMAIN%\LOCALE;%DPATH%
SET HELP=%CXXMAIN%\HELP;%HELP%
SET INCLUDE=%CXXMAIN%\INCLUDE;%INCLUDE%
SET IPFC=%CXXMAIN%\BIN;%IPFC%
SET LIB=%CXXMAIN%\LIB;%LIB%
SET CPP_DBG_LANG=CPP
SET LANG=en_us
SET NLSPATHTEMP=%CXXMAIN%\MSG\%%N
SET NLSPATH=%NLSPATHTEMP%;%NLSPATH%
SET NLSPATHTEMP=
SET PATH=%CXXMAIN%\BIN;%PATH%
if $%1$==$$ goto end
start %1 %2 %3 %4 %5 %6 %7 %8 %9
exit
:end
Therefore, given that object parameter setup, what actually ends up hapenning at the end of that SETENV.CMD file is the following:
...
start CPPHLP36.EXE open index.htm
exit
...
...Since this is a cmd.exe batch, the exit will terminate the session.
Since your help_server_start.cmd is REXX, the exit will terminate the REXX script a leave the session running. To terminate the session, you need to replace the exit with 'exit'.
If you want setenv to start help_server_start.cmd minimized, you need to change the parameters to
/min G:\netqos2\help_server_start.cmd
OK, this makes sense now, thank you!
Here is what I did:
- I added the '/min' parameter to the help_server_start.cmd object
Now I only wish I knew how to shut down HTTPDL.EXE from the CLI, because my help_server_stop.cmd script really should do both: NETQ and HTTP servers. That would be cleaner...