Skip to content

Interactive dialogs

Ralf Kilian edited this page Apr 6, 2021 · 10 revisions

Interactive dialogs

ℹ️ In case an error occurs when running the script, you may run the compatibility script for details.

Salomon interactive dialogYou can also use interactive dialogs instead of or in combination with command-line arguments.

Simply execute the script with the --dialogs or --interactive argument.

./salomon.sh --dialogs

This does not require further arguments, but as already mentioned above you can also add arguments whose values will be automatically applied to the dialogs. For example, with this command

./salomon.sh --dialogs -a monitor -i /var/log/foobar.log -c foo_colors.cfg

the dialog window asking for the input file will already contain /var/log/foobar.log, which can still be changed.

Those dialogs inside the text-based user interface can be displayed using the tools dialog and whiptail. By default, Salomon automatically detects which of both is installed and uses the the corresponding one. If both are installed, dialog is being preferred.

However, you can explicitly set the one you want to use inside salomon.cfg. For example, if you want to only use whiptail, edit the file and set the value of the option dialog_program from auto to whiptail:

dialog_program=whiptail

Furthermore, you can set which dialogs should be shown when using interactive mode. For example, if you want to disable the welcome dialog, edit salomon.cfg and change the value of the option dialog_show_welcome from 1 to 0:

dialog_show_welcome=0

Top