linux – 使用qsub运行shellscript的’意外的文件结束’和’错误导入功能定义’错误
发布时间:2020-05-27 15:43:50 所属栏目:Linux 来源:互联网
导读:我有以下 shellscript: #!/bin/shcd /sw/local/bin/export LD_LIBRARY_PATH=/sw/local/lib:/usr/local/Trolltech/Qt-4.7.2/lib:$LD_LIBRARY_PATH./FeatureFinderRaw -in /homes/JG-C1-18.mzML -out /homes/test_remov
|
我有以下 shellscript: #!/bin/sh cd /sw/local/bin/ export LD_LIBRARY_PATH=/sw/local/lib:/usr/local/Trolltech/Qt-4.7.2/lib:$LD_LIBRARY_PATH ./FeatureFinderRaw -in /homes/JG-C1-18.mzML -out /homes/test_remove_after_use.featureXML -threads 20 当我从自己的命令行运行它时,它工作正常,但是当我尝试做: qsub -q ningal.q -cwd -V -o /homes/queue.out -e /queue.err featureFind_C1-18_20t.sh 我收到以下错误: /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libOpenMS.so: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/bash: module: line 1: syntax error: unexpected end of file /bin/bash: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' 我不明白为什么在使用qsub时会收到此错误,但是在直接在同一个集群机器上运行脚本时却并不明白.如何使用qsub运行脚本? 解决方法在使用的包装器脚本中也有这个问题qsub -shell no -b yes -cwd -V somescript.bash arg1 arg2 etc 如果您使用它来提交另一个bash shell脚本.它产生了声音 /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `BASH_FUNC_module' (这是在CentOS 6.6上运行的Sun Grid Engine 211.11)通过简单地将以下内容放在包装器脚本(而不是包装的脚本)上来解决问题: unset module 就这样. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Azure磁盘大小太小. Linux基本A0只有29GB
- linux – 无法使用’localhost’连接到MySQL,但使用’127.0
- linux – 如何为发件人地址配置真实域名
- linux – 在bash进程中文件描述符255的使用是什么
- linux – .htaccess redirect index.php到/
- linux内核 – Linux驱动程序
- redhat – yum与Red Hat Network Subscription如何在rhel D
- linux – dd中ibs / obs / bs的用途
- gpg:我需要备份什么?
- 如何删除Linux上的“update-alternatives”链接
