Linux Package Editor Reference
44
Using Script Editor
3. Specify the location and name of the shell file, and then click Save.
4. To view the code on the destination Linux computer, use the cat command
(example: cat shell_file.sh). To view the code on a Windows computer, open it in
Wordpad.
See also:
About script actions in Linux Package Editor
on page 46
Adding an Action to a Script
In Script Editor, do any of the following:
z
From the Actions list in the left pane, drag an action onto a line in the Installation
Script list in the right pane. The new action appears above the line that is
highlighted when you drop the action.
z
Click in the script and double-click the action in the Actions list to place the new
action above the line you clicked.
z
Click in the script and start typing the first few letters of the action name. As you
type, the current line becomes a drop-down list with all the action names, and the
action that most closely matches the letters you typed is the current item in the list.
When the action you want is the current item in the list, press Enter.
When you add an action, a dialog box appears that lets you set the parameters for the
action unless it does not require parameters.
Some actions come in pairs. (Example: When you add an If action, you must also add an
End action at the end of the condition block.) Script Editor indents actions inside these
pairs.
Context-sensitive help is available for every script action dialog box; press F1 when the
dialog box appears.
See also:
The Script Editor Window
on page 42
Editing Scripts
To edit a script in Script Editor, use the commands on the Edit menu, the commands on
the right-click menu, or the tools on the toolbar. You can edit only one script line at a
time, but you can cut, copy, or paste several lines at one time.
Select the installation script to display and edit from the Install Event drop-down list.
Editing Script Action Parameters
Double-click the action in the script. For most script actions, a dialog box appears so you
can configure its parameters.
To copy and paste script lines
1. Select one or more script lines.
2. Select Edit menu > Cut or Copy.