Re: Simulation runs only in background

From: Marlon Sidore (
Date: Wed Jun 01 2016 - 04:09:16 CDT

">" means you're redirecting what's normally on the terminal to your log
file. "&" means that the process will be in the background and the number
given is the process number.

If you want to have both a log file and a terminal output I guess you
should use tee, like this:
namd2 ubq_ws_eq.conf | tee ubq_ws_eq.log
Or if you want <all> output redirected, with the stderr, like this
(although you'd probably not want this):
namd2 ubq_ws_eq.conf 2>&1 | tee ubq_ws_eq.log

Marlon Sidore

PhD Student
Laboratoire d'Ingénierie des Systèmes Macromoléculaire (LISM)
CNRS - UMR7255
31, Chemin Joseph Aiguier
13402 cedex 20 Marseille

2016-06-01 10:44 GMT+02:00 Roshan Shrestha <>:

> When I type namd2 ubq_ws_eq.conf > ubq_ws_eq.log & in terminal, it gives
> some arbitrary number like 2858 as output in terminal, but the simulation
> runs in background giving all the output files. I am not sure why it
> doesn't show up in terminal, all the necessary information during
> simulation in my case here just like it does when I type only namd2
> ubq_ws_eq.conf only at the terminal at the expense of log file. Thanks

This archive was generated by hypermail 2.1.6 : Tue Dec 27 2016 - 23:22:13 CST