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.
可能对脚本最简单的改进就是将脚本的输出写入日志文件。
应用推荐