Client Commands
The following commands are used on Loadnrun Client machines. Example output shows client usage.
/listcache Command
Use the /listcache command to display the list of applications present on the client machine. For example:
"%II_LOADNRUN62_CMD%" /listcache
Example output:
==========================================================================
Loadnrun62: Mon 03/10/2014 15:50:32.40: Contents of directory "%APPDATA%\Actian\eclientcache"
--------------------------------------------------------------------------
"%APPDATA%" = "C:\Users\username\AppData\Roaming"
--------------------------------------------------------------------------
File Not Found
==========================================================================
"File Not Found" indicates that the directory is empty.
Launcher Command
Use the following command to start the simple launcher:
"%II_LOADNRUN62_CMD%" launcher %II_LOADNRUN62_GATEWAY% 62demo
This command downloads the launcher application. The launcher application has up to ten buttons that use Loadnrun to launch applications. By default, the list of demo applications that can be launched include:
• HTTP Test Demo (62demo)
• Comtest Client Demo (62demo)
• Jigfall Demo (62demo)
• Minesweeper Demo (62demo)
• Intertask 1 (62demo)
• Intertask 2 (62demo)
• connect_example2 (62demo)
• Query Tool (62demo)
Use the /listcache hostname 62demo to display the Loadnrun applications that are currently downloaded to the local Loadnrun eClientcache:
"%II_LOADNRUN62_CMD%" /listcache hostname 62demo
Example output:
===========================================================================================
Loadnrun62: Mon 03/10/2014 15:57:52.94: Contents of directory "%APPDATA%\Actian\eclientcache\hostname\62demo"
-------------------------------------------------------------------------------------------
"%APPDATA%" = "C:\Users\username\AppData\Roaming"
-------------------------------------------------------------------------------------------
launcher
===========================================================================================
After starting all the demos at least one time, the previous command will now produce the following output:
===========================================================================================
Loadnrun62: Mon 03/10/2014 16:01:03.71: Contents of directory "%APPDATA%\Actian\eclientcache\hostname\62demo"
-------------------------------------------------------------------------------------------
"%APPDATA%" = "C:\Users\username\AppData\Roaming"
-------------------------------------------------------------------------------------------
comtestclient
connect_example2
httptest
Intertask1
Intertask2
Jigfall
launcher
Minesweeper
qt
===========================================================================================
/listrun Command
The /listrun command displays a list of the commands you can use to start the application without using the Loadnrun Server:
"%II_LOADNRUN62_CMD%" /listrun hostname 62demo
Example output:
===========================================================================================
Loadnrun62: Mon 03/10/2014 16:03:18.28: List of run.bat scripts in "%APPDATA%\Actian\eclientcache\hostname\62demo"
------------------------------------------------------------------------------------------------
"%APPDATA%" = "C:\Users\username\AppData\Roaming"
------------------------------------------------------------------------------------------------
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\comtestclient\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\connect_example2\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\httptest\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask1\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask2\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Jigfall\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\launcher\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Minesweeper\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\run.bat
================================================================================================
The applications in the Loadnrun eClient cache are stored in the following generic location:
%APPDATA%\Actian\eclientcache\hostname\hostsuffix\appname
where the following variables are defined:
hostname
Indicates the machine name extracted from the II_LOADNRUN62_GATEWAY URL
hostsuffix
Indicates the subdirectory on the Loadnrun Server that contains the Loadnrun APPNAME directories
appname
Indicates the application name that references the subdirectory that contains the Loadnrun application image, resources, and install4gl.txt control file for the application.
When the "%II_LOADNRUN62_CMD%" script is used to launch the Loadnrun application, it always checks to determine if the version of the application on the local machine is older than the version on the Loadnrun Server machine. If the version on the local machine does not exist in the eclientcache or if the version in the eclientcache is older than the version on the Loadnrun Server, the version in the eclientcache is removed and the new version is downloaded.
If the run.bat file in the eclientcache for an APPNAME is called directly, the application is launched without checking the Loadnrun Server.
/clearcache Command
You can remove the applications in the eclientcache using the following command:
"%II_LOADNRUN62_CMD%" /clearcache hostname 62demo
Example output:
================================================================================================
Loadnrun62: Mon 03/10/2014 16:15:58.68: Removing directories and files in "%APPDATA%\Actian\eclientcache\hostname\62demo"
-------------------------------------------------------------------------------------------
"%APPDATA%" = "C:\Users\username\AppData\Roaming"
-------------------------------------------------------------------------------------------
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\comtestclient
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\connect_example2
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\httptest
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask1
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask2
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Jigfall
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\launcher
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Minesweeper
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\comtestclient\comtestclient.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\comtestclient\Comtestclient.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\comtestclient\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\comtestclient\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\connect_example2\connect_example2.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\connect_example2\connect_example2.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\connect_example2\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\connect_example2\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\httptest\httptest.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\httptest\httptest.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\httptest\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\httptest\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask1\Intertask1.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask1\Intertask1.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask1\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask1\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask2\Intertask2.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask2\Intertask2.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask2\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Intertask2\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Jigfall\Jigfall.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Jigfall\Jigfall.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Jigfall\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Jigfall\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\launcher\launcher.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\launcher\Launcher.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\launcher\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\launcher\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Minesweeper\Minesweeper.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Minesweeper\Minesweeper.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Minesweeper\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\Minesweeper\w4gl.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\complib.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\iiutil.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\qt.config
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\qt.img
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\qt_username.log
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\run.bat
C:\Users\username\AppData\Roaming\Actian\eclientcache\hostname\62demo\qt\username.qp
===========================================================================================
The \clearcache command removes all files in the eclientcache under the hostname\62demo subdirectory. You can use this command to clear the entire eclientcache if needed.