HSCRIPT-FETCH(1)

NAME
hscript-fetch - fetch a HorizonScript for further processing

SYNOPSIS
hscript-fetch FILE-OR-URL

DESCRIPTION
The hscript-fetch utility retrieves the HorizonScript from the location specified by FILE-OR-URL, and writes it to the path expected by the hscript-executor(8) utility; presently, /etc/horizon/installfile.

The single argument, FILE-OR-URL, should specify either an absolute path (one that begins with a /), or a URL.

  Remote script retrieval
If a remote URL is specified, the hscript-fetch utility will attempt to download the HorizonScript from it. Supported URL protocols include HTTP, HTTPS, and TFTP.

FILES
/etc/horizon/installfile
hscript-fetch writes the HorizonScript specified to /etc/horizon/installfile.

EXIT STATUS

EXAMPLES
hscript-fetch /media/live/desktop.installfile

hscript-fetch https://deploy.company.int/workstation16.installfile

DIAGNOSTICS

%dateT%time log %location: %status: %message[: %extra] A message of type %status was logged while processing %location. The log message %message may be followed by additional information or hints in %extra.

SEE ALSO
hscript(5).

HISTORY
The hscript-fetch command first appeared in Horizon 0.1.

AUTHORS
A. Wilcox <awilfox@adelielinux.org>

SECURITY CONSIDERATIONS
The hscript-fetch utility supports unencrypted HTTP download. Extreme caution should be exercised when using unencrypted HTTP downloads, as your system's root password could be manipulated by a malicious attacker. Please use HTTPS whenever possible.