From: John Stone (
Date: Mon Apr 20 2015 - 01:45:18 CDT

  My guess is that you're either opening or creating a large number of files via
"mol new" or "mol addfile" without using the "waitfor all" flag, or a similar
issue. Without the code it's difficult to say what may be going wrong.

  John Stone

On Mon, Apr 20, 2015 at 11:59:34AM +0530, Monika Madhavi wrote:
> Dear all,
> I wrote a tcl script to trace the trajectories of few atoms out of 30000
> atoms of 10000 frames. I loaded the psf and dcd files and sourced the
> script and executed it. The same script worked perfectly for a small no of
> frames (10) but when I try to run it for 10000 frames it gives me an error
> saying "couldn't open "file13": too many open files". I checked through
> the script and all atomselect commands are deleted and all files are
> closed. I would be grateful if someone can let me know the cause of this
> error and a solution to this.
> Thank you.
> Monika
> --
> W.A.Monika Madhavi
> Lecturer (Probation),
> Department of Physics,
> University of Colombo.

NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801           Phone: 217-244-3349