Detection Process¶
- File location
Bundled implementation:
source/server/python/process.py
Cluster implementation:
cluster/daemon/python/process.py
-
process.
process
(info: INFO)¶ Process extracted files with detection information.
-
process.
make_env
(info: INFO)¶ Generate a dictionary of environment variables based on request information.
-
process.
make_cwd
(info: INFO)¶ Generate the working directory of detection information.
-
process.
init
(info: INFO)¶ Run the initialisation commands of detection information.
- Parameters
info (INFO) – Detection request information.
- Returns
Exit code (
const.EXIT_SUCCESS
orconst.EXIT_FAILURE
).- Return type
-
process.
run
(command: Union[str, List[str]], info: INFO, file: str = 'unknown')¶ Run command with provided settings.
- Parameters
- Returns
Exit code (
const.EXIT_SUCCESS
orconst.EXIT_FAILURE
).- Return type