[Wien] Again "Invalid null command"
Laurence Marks
L-marks at northwestern.edu
Sat Feb 23 16:34:56 CET 2008
I don't know this specific problem, but I do know that (unfortunately)
unix shell scripts often don't obey a standard the same way that
Fortran does (C also is not always so standard).
On Sat, Feb 23, 2008 at 9:06 AM, Lyudmila Dobysheva <lyu at otf.pti.udm.ru> wrote:
> Dear WIEN developers,
>
> A few times there were messages about "Invalid null command" before every
> command in scf cycle. It looks like this:
> Invalid null command.
> LAPW0 END
> LAPW1 END
> LAPW2 END
> Invalid null command.
> CORE END
> Invalid null command.
> CORE END
> Invalid null command.
> MIXER END
>
> I see that in my case it comes from the x script, the part:
> set cmplx=`cut $file.struct -b -6|\
> awk 'BEGIN{c="c"};{if ($0 == "-1 0 0") {\
> getline; {if ($0 == " 0-1 0"){\
> getline; {if ($0 == " 0 0-1"){c= ""}}}}}};\
> END{print c}'`
>
> If I change these lines into one long line (without \<newline> ) the error
> disappears. In my former version of shell it correctly treated this place,
> but in a new version it gives "Invalid null command" here.
>
> Good work with \<newline>:
> Linux version 2.6.14-1.1653.1aspsmp (build at amd64.asplinux.com.ua) (gcc version
> 4.0.2 20051125 (Red Hat 4.0.2-8))
> GNU bash, version 3.00.16(1)-release-(i686-pc-linux-gnu)
> tcsh 6.14.00 (Astron) 2005-03-25 (i386-intel-linux) options
> wide,nls,dl,al,kan,rh,color,filec
>
> Bad work with \<newline>:
> Linux version 2.6.22-14-generic (buildd at palmer) (gcc version 4.1.3 20070929
> (prerelease) (Ubuntu 4.1.2-16ubuntu2))
> GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
> tcsh 6.14.00 (Astron) 2005-03-25 (i486-intel-linux) options
> wide,nls,dl,al,kan,rh,nd,color,filec
>
> Maybe this depends on a specific installation of the system, some exotic
> variable of shell is set in a wrong way?
>
> Best regards
> Lyudmila Dobysheva
> ------------------------------------------------------------------
> Phys.-Techn. Institute of Ural Br. of Russian Ac. of Sci.
> 426001 Izhevsk, ul.Kirova 132
> RUSSIA
> ------------------------------------------------------------------
> Tel.:7(3412) 442118 (home), 218988(office), 250614(Fax)
> E-mail: lyu at otf.fti.udmurtia.su, lyu at otf.pti.udm.ru
> http://fti.udm.ru/ltt/personals/dobysh.htm
> ------------------------------------------------------------------
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
>
--
Laurence Marks
Department of Materials Science and Engineering
MSE Rm 2036 Cook Hall
2220 N Campus Drive
Northwestern University
Evanston, IL 60208, USA
Tel: (847) 491-3996 Fax: (847) 491-7820
email: L-marks at northwestern dot edu
Web: www.numis.northwestern.edu
Commission on Electron Diffraction of IUCR
www.numis.northwestern.edu/IUCR_CED
More information about the Wien
mailing list