![Symantec WISE LINUX PACKAGE EDITOR 8.0 Скачать руководство пользователя страница 51](http://html.mh-extra.com/html/symantec/wise-linux-package-editor-8-0/wise-linux-package-editor-8-0_reference_1418947051.webp)
Linux Package Editor Reference
51
Script Actions
Check HTTP Connection
This action uses the Wget downloading tool to determine whether a given URL is valid.
When the action is run, the results are placed in the $RETURNCODE variable:
Note
If the Web server redirects URLs that are not valid to another internal Web page, this
action does not detect an error.
To complete the dialog box
z
URL to Check
Enter a URL.
z
HTTP Status Return Variable
Enter or select a variable in which to place the code that is returned by the Web
server. This will be a standard HTTP return code.
When you define the variable, you do not have to precede it with a $. Otherwise,
follow standard conventions for naming Linux shell variables.
Check Process
This action determines whether a specific process is running on the Linux computer.
When the action is run, the number of instances of the specified process is placed in the
$RETURNCODE variable.
Note
In rare instances, two different processes might have the same name. Both processes
would be reported as instances of the same process.
To complete the dialog box:
z
Process Name to Check
Enter a Linux process name. Example: initd.
z
Process ID Return Variable
Enter or select a variable in which to place the process ID number. If multiple
instances are running, the process ID of the first instance is used.
When you define the variable, you do not have to precede it with a $. Otherwise,
follow standard conventions for Linux variables
Check RPM Database
This action queries the RPM database on the Linux computer and returns the results to a
user-defined variable.
0
The URL was valid.
non-zero
The action was unsuccessful.