| 查看: 550 | 回复: 1 | ||
luqing6879木虫 (著名写手)
|
[求助]
cshell脚本求助
|
|
我在mac os x 10.8.4上运行gamess, VERNO=May12013R1。 如果在命令行输入gms 文件名,没有任何问题。现在我想把它写到脚本文件中,如下: #!/bin/csh set base=`pwd` set suffix=_1 set ibase=`echo $1 | sed 's/\.[a-zA-Z4-9]*$//'` set kbase=`echo $ibase | sed 's/\_/ /' | sed 's/\-/ /' | sed 's/\+/ ,/'` if ( -w $ibase.out && $?suffix ) then if ( -w $ibase.out$suffix ) then cat $ibase.out >> $ibase.out$suffix rm -f $ibase.out else mv $ibase.out $ibase.out$suffix endif endif set title=j$kbase[1] set input=$1 set cpuct=1 if ( $#argv == 2 ) then set cpuct = `echo $argv[2]` endif cat > pbs.$$ <<EOF ### I want 1 node(s) with $cpuct cpu(s) each #PBS -l nodes=1:ppn=$cpuct ### #PBS -N $title #PBS -r n #PBS -c n #PBS -m n #PBS -joe #PBS -koe #PBS -V #PBS -S /bin/csh #PBS -q default cd $base set np=\`cat \$PBS_NODEFILE | wc -l\` cat \$PBS_NODEFILE /Users/qinglu/Documents/gamess/gms $input EOF qsub pbs.$$ ## clean-up rm pbs.$$ 可以正常提交,但是无法正确生成/scratch/$PBS_JOBID文件夹。得到以下错误信息: df: /scratch/3265: No such file or directory GAMESS temporary binary files will be written to /scratch/3265. GAMESS supplementary output files will be written to ./ Copying input file exam01.inp to your run's scratch directory... cp exam01.inp /scratch/3265 请问哪里出问题了? 谢谢。 |
» 猜你喜欢
体制内长辈说体制内绝大部分一辈子在底层,如同你们一样大部分普通教师忙且收入低
已经有12人回复
过年走亲戚时感受到了所开私家车的鄙视链
已经有9人回复
今年春晚有几个节目很不错,点赞!
已经有10人回复
情人节自我反思:在爱情中有过遗憾吗?
已经有10人回复
基金正文30页指的是报告正文还是整个申请书
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
求助高斯脚本同时提交两个任务,一个结束,另一个也结束了
已经有8人回复
shell脚本语言代码求助
已经有10人回复
perl脚本求助,我想将一万多个文件从fasta格序,改为phylip4格式
已经有8人回复
【求助】shell脚本awk实现特定取词
已经有6人回复
【求助】shell脚本实现乘法运算
已经有5人回复
ubuntu10.10 中脚本求助
已经有4人回复
【求助成功】vasp测试K点收敛性的脚本问题
已经有20人回复
【求助】dos脚本求助
已经有5人回复
【求助】vasp作业提交脚本
已经有5人回复
【求助】怎样把linux的bash脚本编译成windows下的可执行文件(.exe)
已经有16人回复
【求助】求将vasp的输出文件转化成xyz坐标的脚本
已经有11人回复
【求助】comsol 3.5a 如何写脚本文件?
已经有6人回复

luqing6879
木虫 (著名写手)
- 应助: 8 (幼儿园)
- 金币: 3567.5
- 散金: 249
- 红花: 3
- 帖子: 1907
- 在线: 808.1小时
- 虫号: 614833
- 注册: 2008-09-28
- 专业: 理论和计算化学

2楼2014-04-22 13:57:50













回复此楼