[comment]: # ({e8144915-e8144915})
# 8 JS

[comment]: # ({/e8144915-e8144915})

[comment]: # ({b0613168-b0613168})
#### Visão geral

O zabbix\_js é um utilitário de linha de comando que pode ser usado para teste
de embedded script.

Este utilitário executará um script de usuário com um parâmetro de string e
apresentará os resultados. Os scripts são executados usando o mecanismo
embutido Zabbix Scripting.

Em casos de erros de compilação ou execução, o zabbix\_js apresentará o erro
na saída stderr e sairá com código 1.

[comment]: # ({/b0613168-b0613168})

[comment]: # ({5fd793d3-de3fe561})
#### Uso

    zabbix_js -s script-file -p input-param [-l log-level] [-t timeout]
    zabbix_js -s script-file -i input-file [-l log-level] [-t timeout]
    zabbix_js -h
    zabbix_js -V

zabbix\_js aceita os seguintes parâmetros de linha de comando:

      -s, --script script-file          Specify the file name of the script to execute. If '-' is specified as file name, the script will be read from stdin.
      -i, --input input-file            Specify the file name of the input parameter. If '-' is specified as file name, the input will be read from stdin.
      -p, --param input-param           Specify the input parameter.
      -l, --loglevel log-level          Specify the log level.
      -t, --timeout timeout             Specify the timeout in seconds. Valid range: 1-60 seconds (default: 10 seconds).
      -h, --help                        Display help information.
      -V, --version                     Display the version number.

Exemplo:

    zabbix_js -s script-file.js -p example

[comment]: # ({/5fd793d3-de3fe561})
