[Wien] PBS script for scratch directory

Hongjun Xiang xhongjun at mail.ustc.edu.cn
Mon Nov 13 00:25:37 CET 2006


Dear Subin,
  Maybe "mkdir $TMPDIR" should be "mkdir -p $TMPDIR".
Best Regards,
Hongjun Xiang 

In your mail:
>From: jadhikari at clarku.edu
>Reply-To: A Mailing list for WIEN2k users <wien at zeus.theochem.tuwien.ac.at>
>To: wien at zeus.theochem.tuwien.ac.at
>Subject: [Wien] PBS script for scratch directory
>Date:Sun, 12 Nov 2006 16:08:51 -0500 (EST)
>
>Dear WIEN users,
> 
> It has been mentioned many times about the scratch directory before in the
> discussion board. Still I cannot solve the problem. It seems there is
> something wrong with the PBS script. The syntax is not ok. We tried
> various alternatives only to result in a failure. We will be very grateful
> for your help.
> Thanking you.
> 
> Subin Adhikari
> Clark University
> ________________________________________________
> #!/bin/sh
> #PBS -l nodes=1:ppn=1:non-myrinet
> #PBS -j oe
> #PBS -V
> 
> pwd
> cd /home/lsmith/11-06-06/tio1
> 
> TMPDIR="/scratch/$PBS_JOBID"
> export TMPDIR
> mkdir $TMPDIR
> 
> cp -r /home/lsmith/11-06-06/tio1 $TMPDIR
> cd /$TMPDIR
> 
> rm -f .machines
> awk '{print "1:"$1}' $PBS_NODEFILE >; .machines
> echo "granularity:1" >;>; .machines
> echo "extrafine:1">;>;.machines
> 
> /usr/opt/WIEN2k/run_lapw
> 
> cp -r /$TMPDIR/home/lsmith/11-06-06/tio1 /home/lsmith/11-06-06/tio1
> cd ..
> rm -rf $TMPDIR
> _______________________________________
> mkdir: cannot create directory `/scratch//var/spool/PBS/aux/7928.master':
> No such file or directory
> cp: cannot create directory `/scratch//var/spool/PBS/aux/7928.master': No
> such file or directory
> /var/spool/PBS/mom_priv/jobs/7928.master.SC: line 14: cd:
> //scratch//var/spool/PBS/aux/7928.master: No such file or directory
> /scratch//var/spool/PBS/aux/7928.master/sh.wVkByx: No such file or directory.
> cp: cannot stat
> `//scratch//var/spool/PBS/aux/7928.master/home/lsmith/11-06-06/tio1/*': No
> such file or directory
> ________________________________________
> 




More information about the Wien mailing list