를 사용하여 쉘 스크립트를 실행 나는이 다음 쉘 스크립트 : 나는 내 자신의 명령 줄에서 실행할 때'예기치 않은 파일의 끝'과 '오류 함수 정의를 가져 오는'오류가 qsub를
#!/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를 사용할 때는 rror를 사용하지만 동일한 클러스터 시스템에서 직접 스크립트를 실행하는 경우에는 사용하지 마십시오. qsub를 사용하여 스크립트를 어떻게 실행합니까?
/usr/share/Modules/init/bash의 모든 행에서? (여기에도 같은 문제가 있습니다.) – Eureka
아니요 쉘 스크립트 끝에 –