<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>It look like something is wrong with this line [
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/26816605/awk-fatal-cannot-open-file-for-reading-no-such-file-or-directory">https://stackoverflow.com/questions/26816605/awk-fatal-cannot-open-file-for-reading-no-such-file-or-directory</a>
]:</p>
<p>awk '{print "1:"$1":1"}' $PBS_NODEFILE >>.machines</p>
Maybe quotes are needed around the $PBS_NODEFILE:<br>
<br>
awk '{print "1:"$1":1"}' "$PBS_NODEFILE" >>.machines<br>
<br>
<div class="moz-cite-prefix">On 9/8/2017 2:20 AM, Subrata Jana
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAC0FrWggB+KXc0SVd-Rm7rxdA1MdPnjTXOgn=MZ-dpeVmMQUUA@mail.gmail.com">
<div dir="ltr">
<div>Hi Gavin Abo,</div>
<div>I change my job script as follows:</div>
<div><br>
</div>
<div>#################################</div>
<div>
<div style="font-size:12.8px">#!/bin/bash</div>
<div style="font-size:12.8px">#PBS -N wien2k</div>
<div style="font-size:12.8px">#PBS -o out.log</div>
<div style="font-size:12.8px">#PBS -j oe</div>
<div style="font-size:12.8px">#PBS -l nodes=1:ppn=1</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"># Load Intel environment</div>
<div style="font-size:12.8px">source
/apps/intel_2016_u2/compilers_<wbr>and_libraries_2016.2.181/<wbr>linux/bin/compilervars.sh
intel64</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">cd /home/sjana/WIEN2k/PBE/C_pbe</div>
<div style="font-size:12.8px">rm -f .machines</div>
<div style="font-size:12.8px">echo '#' > .machines</div>
<div style="font-size:12.8px"><span style="font-size:small"><b>echo
-n 'lapw0:' > .machines</b></span><br>
</div>
<div style="font-size:12.8px">echo 'granularity:1'
>>.machines</div>
<div style="font-size:12.8px">awk '{print "1:"$1":1"}'
$PBS_NODEFILE >>.machines</div>
<div style="font-size:12.8px">echo 'extrafine:1'
>>.machines</div>
<div style="font-size:12.8px">/home/sjana/WIEN2k_14.2/run_<wbr>lapw
-p -i 40 -ec .0001 -I</div>
</div>
###########################################
<div><br>
</div>
<div>Now the out.log</div>
<div><br>
</div>
<div>
<div>awk: cmd. line:1: fatal: cannot open file `-np' for
reading (No such file or directory)</div>
<div>ssh: Could not resolve hostname granularity: Name or
service not known^M</div>
<div><br>
</div>
<div>> stop error</div>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>S. Jana</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Wien mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a>
<a class="moz-txt-link-freetext" href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a>
SEARCH the MAILING-LIST at: <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a>
</pre>
</blockquote>
<br>
</body>
</html>