<div dir="ltr">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"<div><br></div><div>See <a href="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=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</a></div><div><br></div><div><a href="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">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</a><br></div><div><br></div><div>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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 25, 2017 at 8:46 AM, ahmed amine <span dir="ltr"><<a href="mailto:ahmedamine_dz@hotmail.fr" target="_blank">ahmedamine_dz@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_6470829738199133738divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p></p>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13784">
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13785">
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13786">
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13787">
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13788" style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13789">Hello,</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13790"><br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13791">
</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13792" dir="ltr">I am trying to run wien2k on cluster,</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13793" dir="ltr">after submitting this bash job I found this error</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13794" dir="ltr"><br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13795">
</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13796" dir="ltr">ibnbadis15 nodelist<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13797">
8<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13798">
ibnbadis15<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13799">
8 CPU<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13800">
8<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13801">
8<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13802">
/var/log/slurm/spool_slurmd//<wbr>job93135/slurm_script: /home/ahmedamine_dz/WIEN2k/<wbr>run_lapw: /bin/csh: bad interpreter: No such file or directory</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13803" dir="ltr"><br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13804">
</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13805" dir="ltr">the bash script used :</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13806" dir="ltr"><br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13807">
</div>
<div id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_13808" dir="ltr">#! /bin/bash<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14009">
#SBATCH --nodes=1<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14010">
#SBATCH --ntasks-per-node=8<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14011">
#########################<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14012">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14013">
export OMP_NUM_THREADS=1<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14014">
export WIENROOT=/scratch/daint/<wbr>piyusha/wien2k<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14015">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14016">
echo $SLURM_NODELIST nodelist<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14017">
echo $SLURM_JOB_CPUS_PER_NODE<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14018">
list=`scontrol show hostname $SLURM_NODELIST | paste -d, -s`<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14019">
echo $list<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14020">
# Use , as list seperator<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14021">
IFS=','<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14022">
# Convert string to array<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14023">
hcpus=($SLURM_JOB_CPUS_PER_<wbr>NODE)<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14024">
unset IFS<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14025">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14026">
declare -a conv<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14027">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14028">
# Expand compressed slurm array<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14029">
for cpu in ${hcpus[@]}; do<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14030">
     echo $cpu CPU<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14031">
     if [[ $cpu =~ (.*)\(x(.*)\) ]]; then<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14032">
    # found compressed value<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14033">
#    value=4<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14034">
    value=${BASH_REMATCH[1]}<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14035">
    factor=${BASH_REMATCH[2]}<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14036">
    for j in $(seq 1 $factor); do<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14037">
        conv=( ${conv[*]} $value )<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14038">
    done<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14039">
     else<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14040">
    conv=( ${conv[*]} $cpu )<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14041">
     fi<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14042">
done<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14043">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14044">
# Build .machines file<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14045">
rm -f .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14046">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14047">
#echo $list | awk -F "," '{printf ("lapw0:");for (i=1;i<=NF;i++){printf ("%s  ",$i)};printf("\n")}' >> .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14048">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14049">
nhost=0<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14050">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14051">
echo -n 'lapw0:' >> .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14052">
echo ${conv[@]};<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14053">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14054">
IFS=','<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14055">
for node in $list<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14056">
do <br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14057">
    declare -i cpuspernode=${conv[$nhost]};<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14058">
    for ((i=0; i<${cpuspernode}; i++))    <br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14059">
    do<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14060">
    echo -n $node"  " >> .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14061">
    done<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14062">
    let nhost+=1<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14063">
done <br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14064">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14065">
echo  " " >> .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14066">
nhost=0<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14067">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14068">
echo ${conv[@]};<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14069">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14070">
IFS=','<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14071">
for node in $list<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14072">
do <br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14073">
    declare -i cpuspernode=${conv[$nhost]};<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14074">
    echo -n 1: >> .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14075">
    for ((i=0; i<${cpuspernode}; i++))    <br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14076">
    do<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14077">
    echo -n $node" " >> .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14078">
    done<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14079">
    echo " "  >> .machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14080">
    let nhost+=1<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14081">
done <br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14082">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14083">
echo 'granularity:1' >>.machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14084">
echo 'extrafine:1' >>.machines<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14085">
<br id="m_6470829738199133738yiv8321024969yui_3_16_0_1_1488030541102_14086">
<div id="m_6470829738199133738yui_3_16_0_1_1488030181804_32436" dir="ltr">run_lapw -p</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<p></p>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Professor Laurence Marks</span><br></div><div dir="ltr"><span style="font-size:12.8px">"Research is to see what everybody else has seen, and to think what nobody else has thought", </span><span style="font-size:12.8px">Albert Szent-Gyorgi</span><br><a href="http://www.numis.northwestern.edu" target="_blank">www.numis.northwestern.edu</a> ; <span style="font-size:12.8px">Corrosion in 4D: </span><a href="http://MURI4D.numis.northwestern.edu" style="font-size:12.8px" target="_blank">MURI4D.numis.northwestern.edu</a><div><span style="font-size:12.8px">Partner of the CFW 100% program for gender equity, </span><a href="http://www.cfw.org/100-percent" style="font-size:12.8px" target="_blank">www.cfw.org/100-percent</a></div><div>Co-Editor, Acta Cryst A</div></div></div></div></div></div></div></div></div></div></div>
</div>