Skip to content

35. 'Custom Script' Editor Window

Valéry Letroye edited this page Dec 11, 2017 · 2 revisions

This window opens automatically when adding a new shell 'Script' into a package. To open it when editing an existing script, double click the 'path' (something like '/webman/3rdparty//Mods_Script/mods.php'). It comes with two tabs: a 'Script Editor' and a 'Runner Editor'.

The 'Script Editor' is used to edit the shell script that you want to run within your Package.

The 'Runner Editor' is used to customize a copy of the 'default.runner' php script. This one will be use to run your script and capture live its output (See details at §3). As it's a copy, this script is not updated when you modify the 'default.runner' php script!

Both tabs are using ScintillaNet to highlight basically the syntax.

Click 'OK' to commit all changes done in any of the two scripts and close the window. All changes are persisted immediately under the subfolder '\package\ui<Your Script Name>\Mods_Script'. The customized copy of 'default.runner' is stored in 'mods.php' and your custom script is stored as 'mods.sh'.

Click 'Cancel' to abort all changes and close the window.

The 'Help' link in the upper right corner give you access to an help about shell scripts.