如果可以在不串行化的情况下将数据返回到客户机,那么,通过直接绑定到一个XML输出主机变量,这是避免任何替换字符的最安全的方法。
If it is possible to return the data to the client without serialization, by binding directly to an XML output host variable, this is the safest way to avoid any kind of substitution character.
例如,要获取一台远程主机的磁盘信息,您可以使用下面清单1中的这个命令,并获得相应的输出结果。
For example, to get the disk information for a remote host, you might use the command and get the output in Listing 1 below.
这个命令的输出应该告诉您分配给这个IP地址的主机名。
The output of the command should tell you the host name assigned to this IP address.
远程执行还模拟客户端主机的标准输入、输出和错误。
Remote execution also emulates the standard input, output, and error of the client host.
例如,您可以直接将信息附加到远程文件,方法是通过管道将输出从命令传输到远程主机上的SSH(请参见清单7)。
For example, you can append information directly to a remote file by piping the output from the command to an SSH on a remote host (see Listing 7).
使用用户所提供的输入,宏会切换至主机程序并获取需要的输出。
Using the input submitted by the user, the macro navigates the host application and extracts the requested output.
该输出为您提供了一份非常详细的列表,其中列出了所发现的主机、注册的IP和mac地址,以及可能的主机提供商的简要确定信息。
The output gives you a very clear list of the hosts discovered, the IP and MAC addresses registered, and a brief determination of the probable host provider.
已经将远程主机的标准输入和输出复制到了本地计算机,所以可以在本地对该命令的输出进行筛选,如清单4中所示。
The standard input and output of the remote host are replicated to the local machine, so the output from the command can be filtered locally, as shown here in Listing 4.
例如,在FT p适配器模式的情况下,您只需提供FTP服务器的主机名称、输入和输出文件的目录和格式。
In the case of the FTP adapter pattern, for example, you need to provide only the host name of the FTP server, the directories and the format of the input and output files.
从这个输出中可以看到,指定主机上的该磁盘损失了大量的可用空间。
You can see from this output that we have lost some significant space out of the space available on this disk on the specified host.
输出划分为每个主机一段。
因此,通过在主机操作系统上使用XWindowSystem服务器,可以将视频输出转发到可用的 X 服务器。
Therefore, by using an X Window System server on the host operating system, video output can be redirected to the available X server.
对于本文,所有样例命令和输出中使用的目标主机系统都称为testhost。
For the purposes of this article, the target host system used in all sample commands and output is called testhost.
通常,使用远程shell在远程主机上运行命令;输出经过加密之后通过SSH连接发送到本地shell。
As usual, you can use the remote shell to run commands on the remote host; output is encrypted and sent over the SSH connection to your local shell.
来自主机的输出还要发送到称为tap的文件内。
The output from the mainframe is also sent to a file called tap.
tee命令的功能是作为t管道,将输入(主机的输出)发送到下一条命令和称为tap的文件。
The tee command functions as a T-pipe, taking its input (the output from the mainframe) and sending it to the next command as well as a file called tap.
选择Table以作为表格之中的输出,目标就是保持原始主机界面之中的布局。
Select table to render the output in a table, with the goal of preserving the layout of the original host screen.
nc <ipaddress>23打开到主机的TCP连接,并将管道的输出发送到该连接。
nc <ip address> 23 opens a TCP connection to the mainframe and sends it the output of that pipe.
在此输出中,所显示的节点URL表明了运行节点的实际主机名称,而tuscany运行时则安装在c: \ tuscany \tuscany - sca - 1.3.1目录中。
In this output, the displayed URL of the node shows the actual host name where the node is run, while the Tuscany run time is installed in the c: \ Tuscany \ tuscany-sca-1.3.1 directory.
主机的输出然后进入下一部分,teetap。
The output from the mainframe then goes to the next part, tee tap.
这个示例还演示-n选项的用途,它输出数字的主机地址,从而避免名称查询和解析,可以提高跟踪速度。
The example also shows the use of the -n switch, which prints numeric host addresses, thereby avoiding name lookup and resolution and speeding up the trace.
现在Argus已被设为监视网络中每台主机的连接,使用其中一台Argus客户机输出这些连接的信息。
Now that Argus is set up to monitor the connections for each host on the network, use one of the many Argus clients to print out information about those connections.
例如,如果运行前面的命令并添加 --outdir /tmp/uptime,那么会把每个主机的命令输出捕捉到 /tmp/uptime中单独的文件中,见 清单 4。
For example, if you run the previous command and add --outdir /tmp/uptime, a transcript of the command from each host is captured in a separate file in /tmp/uptime, as Listing 4 shows.
清单6显示了域名服务器(DNS)查找某个主机名期间的输出。
Listing 6 shows the output during a Domain name Server (DNS) lookup for a hostname.
如果还没有定义该主机,那么输出将为空。
在输出脚本的开头,我们只是创建变量来存储可以访问位于本地主机的数据库的用户名和密码。
In this start of our output script, we simply create variables to store our username and password for access to the database located at localhost.
您可以在清单4中看到相关的示例,其中对同一台主机两次执行nmap所得到的输出进行了比较。
You can see an example of this in Listing 4, where you are comparing the output of two executions of nmap on the same host.
这样就可以将主机内某个开关卡的输出连接到其它开关卡。
This allows the outputs from one card to be connected to the other CARDS in the mainframe.
主机使用的燃油是否合适将直接决定机器的运行和输出功率。
Whether the main engine runs on the proper fuel oil will directly decide its operation and output power.
在第二个主机上,如果您将当前进程(也就是shell)注册为“basic”,随后检索可输出消息数据的消息。
On the second host, if you register the current process (that is, the shell), as' basic ', and then retrieve the message you can output message data.
应用推荐