Problem with Tcl & psfgen

From: scott.brown_at_abbott.com
Date: Tue Feb 17 2004 - 13:36:56 CST

I'm trying to use a Tcl script to run psfgen across a series of pdb files.
 I'm having a problem with using a variable set within the script.

Here's the important part of the script:

psfgen << ENDMOL

set contents [read [open pdbfile.list r]]
puts $contents

<snip>

ENDMOL

The following is the output I'm getting from this:

contents: Undefined variable.

Can anyone help me identify what I'm doing wrong? As far as I know I'm
using valid Tcl syntax.

Thanks for any help you can provide.

Scott

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:38:25 CST