From: Vikas Varshney (vv0210_at_gmail.com)
Date: Thu Oct 18 2012 - 14:30:52 CDT

Dear VMD users

I am trying to pass a command line arugment within VMD console as follows
source test.tcl 5

and reading "5" within test.tcl as
set value [lindex $argv 0]

but I am getting following error
wrong # args: should be "source ?-encoding name? fileName" when I do
"source test.tcl 5"

when I run it out of VMD (as tclsh test.tcl 5), it works.

Please let me know how to pass command like arguments within VMD Tk
console.

Thanks for your help

Regards,
vikas