It is possible that this is due to transfer from DOS to unix. With this, and similar questions, often the best thing to do is to type the output into a Google search, e.g. enter "bad interpreter: No such file or directory"
See https://www.google.com/search?q=bad+interpreter%3A+No+such+file+or+directory&oq=bad+interpreter%3A+No+such+file+or+directory&aqs=chrome..69i57.513j0j7&sourceid=chrome&ie=UTF-8 https://www.google.com/search?q=%2Fbin%2Fcsh%3A+bad+interpreter%3A+No+such+file+or+directory&oq=%2Fbin%2Fcsh%3A+bad+interpreter%3A+No+such+file+or+directory&aqs=chrome..69i57j69i58.434j0j9&sourceid=chrome&ie=UTF-8 Then try some of the information in the results. It may also be that csh is not available on the compute nodes with your PATH. On Sat, Feb 25, 2017 at 8:46 AM, ahmed amine <[email protected]> wrote: > Hello, > > I am trying to run wien2k on cluster, > after submitting this bash job I found this error > > ibnbadis15 nodelist > 8 > ibnbadis15 > 8 CPU > 8 > 8 > /var/log/slurm/spool_slurmd//job93135/slurm_script: > /home/ahmedamine_dz/WIEN2k/run_lapw: /bin/csh: bad interpreter: No such > file or directory > > the bash script used : > > #! /bin/bash > #SBATCH --nodes=1 > #SBATCH --ntasks-per-node=8 > ######################### > > export OMP_NUM_THREADS=1 > export WIENROOT=/scratch/daint/piyusha/wien2k > > echo $SLURM_NODELIST nodelist > echo $SLURM_JOB_CPUS_PER_NODE > list=`scontrol show hostname $SLURM_NODELIST | paste -d, -s` > echo $list > # Use , as list seperator > IFS=',' > # Convert string to array > hcpus=($SLURM_JOB_CPUS_PER_NODE) > unset IFS > > declare -a conv > > # Expand compressed slurm array > for cpu in ${hcpus[@]}; do > echo $cpu CPU > if [[ $cpu =~ (.*)\(x(.*)\) ]]; then > # found compressed value > # value=4 > value=${BASH_REMATCH[1]} > factor=${BASH_REMATCH[2]} > for j in $(seq 1 $factor); do > conv=( ${conv[*]} $value ) > done > else > conv=( ${conv[*]} $cpu ) > fi > done > > # Build .machines file > rm -f .machines > > #echo $list | awk -F "," '{printf ("lapw0:");for (i=1;i<=NF;i++){printf > ("%s ",$i)};printf("\n")}' >> .machines > > nhost=0 > > echo -n 'lapw0:' >> .machines > echo ${conv[@]}; > > IFS=',' > for node in $list > do > declare -i cpuspernode=${conv[$nhost]}; > for ((i=0; i<${cpuspernode}; i++)) > do > echo -n $node" " >> .machines > done > let nhost+=1 > done > > echo " " >> .machines > nhost=0 > > echo ${conv[@]}; > > IFS=',' > for node in $list > do > declare -i cpuspernode=${conv[$nhost]}; > echo -n 1: >> .machines > for ((i=0; i<${cpuspernode}; i++)) > do > echo -n $node" " >> .machines > done > echo " " >> .machines > let nhost+=1 > done > > echo 'granularity:1' >>.machines > echo 'extrafine:1' >>.machines > > run_lapw -p > > -- Professor Laurence Marks "Research is to see what everybody else has seen, and to think what nobody else has thought", Albert Szent-Gyorgi www.numis.northwestern.edu ; Corrosion in 4D: MURI4D.numis.northwestern.edu Partner of the CFW 100% program for gender equity, www.cfw.org/100-percent Co-Editor, Acta Cryst A
_______________________________________________ Wien mailing list [email protected] http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien SEARCH the MAILING-LIST at: http://www.mail-archive.com/[email protected]/index.html

