The script probably needs to open a new PDB file for each frame; I do not know if this is related to your problem. If you are using MPI it may be that it is the old stdin rewind MPI problem you have run into. See parallel.doc for a workaround.

Lennart Nilsson
Karolinska Institutet
Stockholm, Sweden