Make sure that the file, objectevents.xml, and the script, are in the same directory and ensure that the script is executable.
确保将objectevents . xml文件和这个脚本放在同一个目录中,并确保脚本是可执行的。
To run this script, enter it into a file called mytar.sh, and type "chmod 755 mytar.sh" to make it executable. Then, give it a try on a tarball, as follows.
要运行此脚本,将它输入到文件mytar. sh中,然后输入“chmod 755 mytar . sh ”,生成可执行文件。
Probably the simplest improvement you can make to your scripts is to write the output from your script to a log file.
可能对脚本最简单的改进就是将脚本的输出写入日志文件。
Another article in this series will show you how to make the script file executable, but for now we'll stick to running scripts by using the sh or the bash command.
本系列的另一篇文章将显示如何让脚本文件变成可执行文件,但是在本文中我们通过sh或bash命令运行脚本。
Notice that we had to make sure the script was written in Python, the configuration file was there, and that the gmond.conf was set correctly.
注意,必须确保脚本是用Python编写的,配置文件已经存在,并且gmond . conf已正确设置。
Once you have edited the file, make sure you run make to rebuild your application, and then restart the application using the start-dev.sh script.
编辑好文件之后,请确保运行make,重新生成应用程序,随后使用start - dev . sh脚本重新启动应用程序。
You must also make sure that any existing commands in an existing post-update script are not preceded by an exec command, which would prevent subsequent lines in the file from being executed.
您必须确保现有更新后处理脚本中的现有命令前面没有exec命令,它会阻止执行文件中的后续行。
Before running the example, make sure you assign the DERBY_HOME variable to the full path to the directory in which Derby is installed and save the SQL script in a file called create.sql.
在运行这个例子之前,请确保将DERBY_HOME变量指定为Derby安装到的那个目录的完整路径,并将这个sql脚本保存到名为create . sql的一个文件内。
Although attention has been given to make the Ant build script cross-platform, the file viewer application has only been tested and verified on Microsoft Windows XP and Red Hat Linux 8.
虽然一直留心使Ant构建脚本可以跨平台使用,但是我们只在MicrosoftWindowsXP和RedHatLinux8操作系统上测试和验证了文件查看器应用程序。
I want to make this script run in an infinite loop, such that the script checks for new file and adds it to the CSV file.
我想让这个脚本在无限循环中运行,以便脚本检查新文件并将其添加到CSV文件。
I want to make this script run in an infinite loop, such that the script checks for new file and adds it to the CSV file.
我想让这个脚本在无限循环中运行,以便脚本检查新文件并将其添加到CSV文件。
应用推荐