[Wien] Syntax error: Bad fd number

Tomohiko Tasaka tasaka at affinity-science.com
Wed May 18 09:39:44 CEST 2022


Hello,

Thank you for your message.
It's not work for me(i.e. Ubuntu 22.04 LTS).

Many systems have /proc/cpuinfo and istat.eq.0 is important,
the following modification may be acceptable.

                istat=system('ls /proc/cpuinfo > /dev/null')


Best regards,
Tomohiko

------Original Message------
From:"Peter Blaha"<pblaha at theochem.tuwien.ac.at>
To:<wien at zeus.theochem.tuwien.ac.at>
Cc:
Subject:Re: [Wien] Syntax error: Bad fd number
Date:05/18/2022 02:59:13 PM(+0900)
Hi,
Your suggestion for the redirect does not work for me.

Could you try to add the tcsh shell explicitly into the command and let 
me know if this works for you, like:


                istat=system('tcsh ls /proc/cpuinfo >& /dev/null')

Regards

Am 18.05.2022 um 06:10 schrieb Tomohiko Tasaka:
> grep -i avx2 /proc/cpuinfo > /dev/null 2> /dev/null

-- 
--------------------------------------------------------------------------
Peter BLAHA, Inst.f. Materials Chemistry, TU Vienna, A-1060 Vienna
Phone: +43-1-58801-165300             FAX: +43-1-58801-165982
Email: blaha at theochem.tuwien.ac.at    WIEN2k: http://www.wien2k.at
WWW:   http://www.imc.tuwien.ac.at
-------------------------------------------------------------------------
_______________________________________________
Wien mailing list
Wien at zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html



More information about the Wien mailing list