Start out by trying a simple PHP script on the command line.
开始时先在命令行中尝试一个简单的php脚本。
Using the script, we can get a list of the uptimes for each host supplied on the command line (see Listing 6).
使用该脚本,我们可以获取命令行上提供的每个主机的正常运行时间列表(请参见清单6)。
A loop works on the command line as nicely as it does in a script.
循环在命令行中的工作效果与在脚本中同样出色。
When typing commands on a command line, it's just like typing them into a script, and then executing the script.
在命令行上键入命令时,就像将它们输入到脚本中,然后执行脚本。
You can write the following on the command line or put the code into a script.
您可以在命令行上编写以下代码,或者将代码复制到脚本。
The Perl script constructs a command pipeline that, if executed on the Linux command line, looks like this.
如果在Linux命令行中执行,perl脚本将构造一个命令管道,如下所示。
The mkewuid script function will output a record line for each string of characters provided on the command line.
mkewuid脚本函数为命令行上提供的每个字符串输出一个记录行。
A message displays containing the line number and command when the trap was caught; the script then exits (from the exit command on the trap command list).
在捕捉到trap后,会显示一条包含行号和命令的消息;脚本随后将退出执行(使用trap命令列表中的exit命令)。
Adjust the script to read as shown in listing 7. The new code starts on line 4 with the creation of a NotesStream object and ends on line 8 with the closing of that object.
将脚本调整到清单7所示的样子。新代码在第4行以创建NotesStream对象开始,在第8行以结束该对象结束。
It's important to note that pretty much whatever you can do on the UNIX command line or in a shell script is allowed here.
通过UNIX命令行和shell脚本能够完成很多东西,知道这点很重要。
Listing 5 shows a very simple script that will obtain the system uptime for each of the hosts supplied on the command line.
清单5显示了一个非常简单的脚本,此脚本将获得命令行上提供的每个主机的系统正常运行时间。
Having the script in one place is a lot more convenient than typing something like that on the command line over and over — and you can refer to it later, or mail someone a copy of it.
相对于一遍又一遍地在命令行中输入,将脚本放在一起将很方便——而且以后您还可以引用它,或者将它的一个拷贝寄给别人。
In setting aside the script and focusing on the client's bottom line, instead of our own, we lay the groundwork for a long-lasting rapport.
我们总是在预设未来发生的事情,专注客户的底线接触度,而不是我们自己,我们由此奠定了长期关系的基础。
There are a couple of ways around this — either write a wrapper script or specify the environments on the command line.
有两个解决方法——编写一个包装器脚本或在命令行上指定环境。
If the script finds a line in the UID or GID file for a user or group that does not exist on the system, the line is simply skipped.
如果脚本在UID或GID文件中找到的用户或组在系统中不存在,那就跳过该行。
At this point, the servercontrol script can launch a new job server by passing launch job on the command line.
至此,servercontrol脚本可以通过在命令行上输入launch job启动一个新的作业服务器。
If you don't see a PDF, you will probably want to run the script on the command line to see if you are missing the fpdf.php file or if there is another issue.
如果没有看到pdf,那么您可能想在命令行运行这段脚本,查看是否丢失了fpdf .php文件或者存在其他问题。
Now that you know the basics of tput from the command line, it's time to focus on putting what you've learned into a shell script along with some other features.
现在您已经了解了从命令行中执行tput 的基本知识,下面我们将重点讲述如何将您学到的知识连同其他一些功能用到 shell脚本中。
Invoke the file from a command line, or click it depending on your operating system. The script putters around for a while before outputting something like this.
从命令行调用文件,或者根据操作系统单击文件。
J. K. Rowling read through the script for this film, and found a line where Dumbledore mentions a girl he had a crush on when he was younger.
罗琳在查阅这部电影的改编剧本时,发现加入了一条邓布利多的感情线,他提到自己年轻时曾经暗恋过一个女孩。
J. K. Rowling read through the script for this film, and found a line where Dumbledore mentions a girl he had a crush on when he was younger.
罗琳在查阅这部电影的改编剧本时,发现加入了一条邓布利多的感情线,他提到自己年轻时曾经暗恋过一个女孩。
应用推荐