See how these rules are put in play by reviewing the sample script in the archive.
通过查看归档中的样例脚本,查看这些规则如何应用。
In the following sample script, the code statements provide such a summary of the execution.
在下面的脚本示例中,代码语句提供了上述脚本的执行摘要。
The zip file in the Download section of this article includes a sample script named autoinstall.
本文下载小节的压缩文件包含一个名为autoinstall的示例脚本。
In the sample script, some echo statements that provide the indication of the progress are shown.
在脚本样本中,一些提供进展说明的echo语句如下所示。
A sample script using mqsideploy.bat can automate the process of deploying a known set of BAR files.
使用mqsideploy . bat的样本脚本可以自动部署一组已知的BAR文件。
The sample script uses Perl to read the information, and the XML::DOM module to load the existing XML.
示例脚本将使用Perl读取该信息,并使用XML::DOM模块加载已有的 XML 。
The ChompQ.pl sample script included with this article contains the logic that determines how many messages to delete.
本文附带的ChompQ.pl样例脚本包含用于确定要删除的消息数量的逻辑。
Listing 2 shows a sample script for ProbeVue that indicates the particular process that's calling the sync system call.
清单2显示了ProbeVue脚本的一个例子,它指出发出sync系统调用的特定进程。
As shown here, the sample script package is formed as a file called MyLabApplication.zip and is composed of two types of files.
如图所示,这个样例脚本包名为MyLabApplication . zip,包含两类文件。
Declare namespace: Besides the namespace declaration for XSLT, the sample script includes three other namespace declarations.
声明名称空间:除了针对XSLT的名称空间声明之外,示例脚本还包含3个其他名称空间声明。
The first sample script called setProperties.bat sets environment variables used by the second sample scripts called createBar.bat.
第一个样本脚本称为setProperties.bat ,它设置了称为 createBar.bat 的第二个样本脚本所要使用的环境变量。
Following the steps described in this article, you'll start out simply to ultimately create a sample script that lets you create a single cluster member.
按照本文描述的步骤,我们将从易到难,最终完成一个可以创建单个集群成员的示例脚本。
My sample script creates one user mapping for the "saracco" account; on the remote Oracle system, this ID will be mapped to "demo" with a password of "demopwd".
我的示例脚本为 "saracco"帐户创建了一个用户映射;在远程Oracle系统上,这个ID将被映射到带有密码 "demopwd" 的 "demo" 用户。
This namespace declaration is specific to the sample script; other applications might have different namespace declarations depending on the elements they process.
这个名称空间声明是特定于示例脚本的;其他应用程序根据所处理的元素可能有不同的名称空间声明。
The final parameter is used for passing additional tuning parameters through to PDO or the underlying driver--more on that shortly. Here's a short sample script that connects to DB2
最后一个参数用于传递附加的调优参数到PDO或底层驱动程序 —— 后面很快会有更详细的论述。
Once the process has been deployed (see also Figure 8), then running the sample is the same as for the BPWS4J sample: invoke the LoanApprovalSample script that is appropriate for your OS.
一旦部署完流程(参阅Figure8所示),然后运行的例子与BPWS4 J例子是相同的:调用与您的操作系统相应的loanapprovalsample脚本。
In this sample application, you can use a client-side script to confirm the removal of a document.
在此样例应用程序中,您可以使用客户机端脚本确认文档的删除。
Sample output from the friends script in Listing 5 is shown in Listing 6.
清单5中的朋友脚本的样例输出如 清单6 所示。
Your sample should specify the valid script command line options, a list of all allowed values for each option, and the default values, when appropriate.
在合适的情况下,您的示例应该指定有效的脚本命令行选项、各个选项的所有允许值的列表,以及相应的缺省值。
Listing 4 shows the beginning of the sample wrapper script, which defines a usage message that displays if you execute the script with no arguments or the wrong number of arguments.
清单4给出了此示例包装器脚本的开始部分,其中定义了一个使用消息,如果在没有参数或参数数量错误的情况下执行该脚本,就会显示这个消息。
You will want to create some sample data using the supplied script (see the Download section).
使用提供的脚本创建一些示例数据(参见下载部分)。
The Download section at the end of this article contains a link to a sample redirected restore script.
本文后面的下载小节包含一个链接,以便下载示例重定向恢复脚本。
Listing 10 shows the sample build script template code.
清单10显示了示例构建脚本模板代码。
Running the script on a sample log file produces some statistics showing the mail counts and sizes for the domain specified (see Listing 4).
对示例日志文件运行该脚本,将产生一些相关的统计信息,从而显示指定域的邮件数量和大小(请参见清单4)。
When you apply the XSLT script from Listing 1 to the XML sample in Listing 2, you get XML along the lines of the following (ignoring the XML declaration).
如果将清单1中的xslt脚本应用到清单2中的xml例子,就会得到下面的XML(忽略了XML声明)。
The content of the generated activate.sql script for a DB2 SAMPLE database would look like this.
对于DB 2SAMPLE数据库,生成的activate . sql脚本的内容如下所示。
The content of the generated reorg.sql script for a DB2 SAMPLE database would look like this.
对于DB 2SAMPLE数据库,生成的reorg . sql脚本的内容如下所示。
Listing 1: Sample syscall ProbeVue script.
清单1:系统调用ProbeVue脚本示例。
The sample also includes a script that you can use to execute from DB2 Command Window as.
这个例子也包含了一个脚本,您可以在DB 2命令窗口里面执行。
However, the script library RunOnServerCall in the sample database contains a reusable function named GetParameterDoc that performs this task for you.
不过,示例数据库中的脚本库runonservercall包含了一个名为GetParameterDoc的可复用函数,它可以替您执行这个任务。
应用推荐