From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Wed Feb 06 2008 - 10:41:43 CST

On Wed, 6 Feb 2008, Lucie Huynh wrote:

LH> Hello everyone,

hello lucie!

LH>
LH> I'm new in tcl/tk language.
LH> I found a script to merge every file in a directory and I'd like to modify
LH> it in order to merge only file that begin with "b" for example.
LH> Here is the lines I modified:
LH>
LH> foreach pdb [glob b*.pdb] {

please change this to:

  foreach pdb "[glob b*.pdb]" {

and it should work.

cheers,
   axel.

LH> foreach segname [lsort [$pdb get segid]]{
LH> set segid $segname
LH> segment $segid {
LH> first NONE
LH> last NONE
LH> pdb $pdb
LH> }
LH> coordpdb $pdb $segid
LH> }
LH> }
LH>
LH> I have only 2 files beginning with "b". No problem for the first one but
LH> there's a problem with the second file...
LH> Here is the error message : couldn't execute "C:\Program Files\University of
LH> Illinois\VMD\basps_moved.pdb": no such file or directory.
LH> What does it mean? what's wrong with the script?
LH>
LH> Thank you in advance for any help!
LH>
LH>
LH> Lucie
LH>

-- 
=======================================================================
Axel Kohlmeyer   akohlmey_at_cmm.chem.upenn.edu   http://www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.