How to record everythinig to a log file in Win7?
Posted: Fri Feb 08, 2013 5:34 am
Dear ALL:
When using Abinit 7.0.5 under 64 bit Windows 7, the way to run abinit is like :
..\..\bin\mpiexec -localonly 2 ..\..\bin\abinit < "t_kpt+spin.files"
(Actually all of them can be added to Environment Variable "PATH")
However, this makes logging on the screen.
Is there a way to log everything into a single log file, as it is in linux?
#abinit <ab.files>& log
I tried this: abinit < ab.files > log 2>&1
It works well when doing serial running, but failed to do mpiexec.
Any help, doc, and suggestion will be greatly appreciated. Thank you very much!!
Solution:
1st step, enter CMD in Administrator mode (right click CMD, "Run as Administrator"). Go to the abinit folder, abinit\bin, run smpd as: smpd -install
Then a new process called smpd will be in the "Processes" of Task Manager.
2nd step: mpiexec -localonly 4 abinit < ab.files > log 2>&1
is good enough to do the work. Here, mpiexec and abinit are added to the PATH environment Variable, so no need to write the full path.
In any case, it will work.
When using Abinit 7.0.5 under 64 bit Windows 7, the way to run abinit is like :
..\..\bin\mpiexec -localonly 2 ..\..\bin\abinit < "t_kpt+spin.files"
(Actually all of them can be added to Environment Variable "PATH")
However, this makes logging on the screen.
Is there a way to log everything into a single log file, as it is in linux?
#abinit <ab.files>& log
I tried this: abinit < ab.files > log 2>&1
It works well when doing serial running, but failed to do mpiexec.
Any help, doc, and suggestion will be greatly appreciated. Thank you very much!!
Solution:
1st step, enter CMD in Administrator mode (right click CMD, "Run as Administrator"). Go to the abinit folder, abinit\bin, run smpd as: smpd -install
Then a new process called smpd will be in the "Processes" of Task Manager.
2nd step: mpiexec -localonly 4 abinit < ab.files > log 2>&1
is good enough to do the work. Here, mpiexec and abinit are added to the PATH environment Variable, so no need to write the full path.
In any case, it will work.