Start/Stop Process; While Statement - Symantec WISE LINUX PACKAGE EDITOR 8.0 - REFERENCE V1.0 Reference

Table of Contents

Advertisement

Start/Stop Process

While Statement

Linux Package Editor Reference
For a numeric expression, enter a valid Linux bc command. You can use
symbols such as + and – for addition and subtraction.
For a logical expression, enter a valid Linux Bash test command. You can use -a
for an AND operation and -o for an OR operation.
This action lets you start or stop a process on the Linux computer during installation of a
package. If you try to stop a process and want the script to pause until the process
stops, add a While Statement action to determine if the process is still running.
See
While
Statement.
This action is not available for Verification and Pre-Flight scripts.
When the action is run, the results are placed in the $RETURNCODE variable:
0
The action to start or stop a process ran successfully.
1
The file to start or the process to stop was not found.
2
Permission to start the process was denied.
To complete the dialog box
Process Name
Enter the name of the process to act on.
Operation
Select whether to start or stop the process.
This action begins a While loop. An EndWhile action must end the loop. As long as the
condition that is specified in the While Statement dialog box is true, the script lines
inside the loop execute repeatedly. If the condition is not true, then the While loop is
exited, and the next script line is executed.
To create a While loop
1.
Add a While Statement and complete the dialog box:
Variable
Select a variable from the first drop-down list, and a comparison method from
the second drop-down list.
The Value
Enter the value to be used in the comparison. This is case-sensitive, unless you
selected a comparison method that ignores case. If you enter variable names,
include $ before the variable. You cannot use compiler variables.
2.
Below the While Statement, add one or more actions to perform if the variable has
the specified value.
3.
Add an End While action.
Script Actions
65

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WISE LINUX PACKAGE EDITOR 8.0 - REFERENCE V1.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Wise linux package editor 8.0

Table of Contents