From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Wed Mar 25 2009 - 10:57:22 CDT

On Wed, 2009-03-25 at 08:12 -0700, Goutham wrote:
> Hey,
> I have been trying to write a TCL script that will accept command
> line arguments (such as input file names). I tried using $argc $argv
> parameters. Now when I run using:
>
> vmd -dispdev text < myscript.tcl filename.pdb
>
> the script doesn't even recognise the argument. Can any one tell me
> what am I doing wrong?

you didn't read the VMD documentation!

you have to use vmd -dispdev text -e myscript.tcl -args filename.pdb

http://www.ks.uiuc.edu/Research/vmd/current/ug/node194.html

cheers,
   axel.
>
> Thanks
> Goutham

-- 
=======================================================================
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.