2.11. HackyInstaller CLI: Set Host And Key

The SetHostAndKey CLI command allows you to mimic the action of typing in the host name and user key to the HackyInstaller GUI and pressing the "Verify Host/Key" button. If either of the supplied host or key is not valid, then neither of the settings are saved.

Example 2.3, “Invoking the HackyInstaller CLI SetHostAndKey command” illustrates an example invocation of the HackyInstaller CLI to set the host and key.

Example 2.3. Invoking the HackyInstaller CLI SetHostAndKey command

C:\>java -jar hackyInstaller.jar -SetHostAndKey http://hackystat.ics.hawaii.edu khidofh45ls
Rhino classes (js.jar) not found - Javascript disabled
Hackystat host/key valid.
Success

C:\>

In the event that either the host and key were not valid, an error message will be provided.