Listing 9. Breaking lines in a shell script.
清单9.shell脚本中的换行。
You can use Zenity to open GTK + dialog boxes from any shell script.
您可以使用Zenity从任何shell脚本打开GTK +对话框。
The jvmstat distribution includes a shell script for invoking visualgc.
jvmstat 发行版包括一个用于调用 visualgc 的shell脚本。
Several administrative utilities are written in UNIX shell script and Perl.
有几个管理实用程序是用UNIXshell脚本和Perl编写的。
You should now have a shell script that looks similar to that shown in Listing 4.
您现在应该拥有一个看起来与列表4相似的脚本。
Once this setup is done, the batch file or shell script is run to start the collection.
完成了此设置后,就可以运行批处理文件或外壳脚本来开始收集工作了。
Users can select and deselect files and click Submit to activate the rsync shell script.
用户可以选择和取消选择文件,并通过单击Submit激活rsyncshell脚本。
Of course, there are times when neither the command line nor a shell script is adequate.
当然,在很多情况下,仅依靠命令行和 Shell脚本是不够的。
As you can see in Figure 1, you get the same results as you would from the shell script.
在图1中可以看到,获得的结果与从shell脚本得到的一样。
This functionality is somewhat similar to the shell script concept in functional Tester.
这个功能与Functional Tester中的shell脚本概念有些相似。
To use a function within your bash shell script, you use the methods shown in Listing 26.
要想在bashshell脚本中使用函数,可以使用清单26 所示的方法。
Each recommendation is detailed below along with a Bash shell script for illustration.
下面详细讲述了每一条建议以及用于说明问题的脚本。
When the shell encounters the dot command, it immediately executes the named shell script.
当Shell碰到点 (.)命令时,它将立刻执行指定的 Shell脚本。
Now that we've learned all about chopping strings, let's write a simple little shell script.
现在我们已经学习了所有截断字符串的知识,下面写一个简单短小的shell脚本。
It is also easy to write a shell script that copies the files from staging to production.
写脚本把文件从交付准备服务器拷贝到生产环境,也很容易。
The shell script will then have commands to invoke SQL files from it, as shown in Table 12.
这个shell脚本通过命令调用SQL文件,见下表。
When a shell script process exits or returns to the parent process, the exit code should be 0.
当shell脚本进程退出或返回到父进程时,退出码应该是0。
If you're writing a shell script, use pipes or the user's home directory for temporary files.
如果您正在编写shell脚本,那么可以使用管道,或者在用户的主目录存入临时文件。
The shell script is located in the installation directory, for example /usr/local/Zend/Core/sbin
此shell脚本位于安装目录中,例如 /usr/local/Zend/Core/sbin。
I find that type gives me more precise information, which I sometimes need in a shell script.
我发现type为我提供了更准确的信息,我需要在某个shell脚本中使用到。
You can also follow feeds from Twitter and FriendFeed manually and by using a simple shell script.
您也可以从Twitter和FriendFeed手动地跟踪feed,或者使用一个简单的shell脚本跟踪feed。
Taking the simple knowledge you've gained thus far, you can make a simple yet useful shell script.
运用到目前为止学到的简单知识,您可以创建简单而有用的shell脚本。
Also notice that the comment place in the shell script was not displayed in the debug information.
还要注意,在调试信息中没有显示shell脚本中的注释。
The mkinitrd utility is actually a shell script, so you can see exactly how it achieves its result.
mkinitrd工具实际上就是一个shell脚本,因此我们可以看到它究竟是如何来实现这个结果的。
Starting up There is also now a small shell script called "nmon" that starts the right nmon version.
启动目前还有一个称为“nmon ”的小型shell脚本,可以用来启动适当的nmon版本。
This utility is a shell script that writes the configuration file to disk as /etc/pkcs11/config_data.
这个实用程序是一个shell脚本,用来将配置文件写到磁盘的 /etc/pkcs11/config_data 。
Listing 8 is a sample shell script that ACTS as a wrapper around either the adduser or useradd command.
清单8是用作adduser或useradd命令的包装的示例外壳脚本。
On the slave servers, snapshots are retrieved from the master server using the snappuller shell script.
在从服务器上,使用snappullershell脚本从主服务器上检索快照。
In many cases, you can invoke a simple shell script that starts the necessary embedded applications.
在很多情况下,我们可以调用一个简单的shell脚本来启动必需的嵌入式应用程序。
With tput and a bit of work, you can create a full-blown, menu-driven shell script that will look great!
通过tput和极少的工作量,您就可以创建看起来非常漂亮而全面的菜单驱动的shell脚本!
应用推荐