[gmx-users] how to direct log file correctly?

Justin Lemkul jalemkul at vt.edu
Sat Apr 20 14:54:52 CEST 2013



On 4/20/13 7:55 AM, Albert wrote:
> Hi Justin:
>
>   thanks for reply.
>
>    I redirect it by  command:
>
> mpirun -np 2 mdrun_mpi -v -s md.tpr -c md.gro -x md.xtc -g md.log > md.info
>
> However the information is still in my terminal screen instead of md.info file.
> It generate a md.info file, but it it is empty.
>
> I also try to use command:
>
> mpirun -np 2 mdrun_mpi -v -s md.tpr -c md.gro -x md.xtc -g md.log & > md.info
>
> but it said:
>
> Invalid null command.
>

There should be no spaces in the redirection operators, i.e. &>md.info will work.

-Justin

-- 
========================================

Justin A. Lemkul, Ph.D.
Research Scientist
Department of Biochemistry
Virginia Tech
Blacksburg, VA
jalemkul[at]vt.edu | (540) 231-9080
http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin

========================================



More information about the gromacs.org_gmx-users mailing list