VMD-L Mailing List
From: Vikas Varshney (vv0210_at_gmail.com)
Date: Thu Oct 18 2012 - 14:30:52 CDT
- Next message: Axel Kohlmeyer: "Re: how to put command line arguments in tcl script"
- Previous message: John Stone: "Re: IMD and AutoIMD bug when releasing forces on residues?"
- Next in thread: Axel Kohlmeyer: "Re: how to put command line arguments in tcl script"
- Reply: Axel Kohlmeyer: "Re: how to put command line arguments in tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Axel Kohlmeyer: "Re: how to put command line arguments in tcl script"
- Previous message: John Stone: "Re: IMD and AutoIMD bug when releasing forces on residues?"
- Next in thread: Axel Kohlmeyer: "Re: how to put command line arguments in tcl script"
- Reply: Axel Kohlmeyer: "Re: how to put command line arguments in tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]