VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Thu Oct 18 2012 - 15:42:14 CDT
- Next message: Him Bandhu Upadhyay: "Application Error message during dihedral optimization using FFTK"
- Previous message: Vikas Varshney: "how to put command line arguments in tcl script"
- In reply to: Vikas Varshney: "how to put command line arguments in tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Thu, Oct 18, 2012 at 9:30 PM, Vikas Varshney <vv0210_at_gmail.com> wrote:
> 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.
it is in the documentation:
http://www.ks.uiuc.edu/Research/vmd/current/ug/node207.html
you need to use:
vmd -args source test.tcl 5
axel.
> Thanks for your help
>
> Regards,
> vikas
-- Dr. Axel Kohlmeyer akohlmey_at_gmail.com http://goo.gl/1wk0 International Centre for Theoretical Physics, Trieste. Italy.
- Next message: Him Bandhu Upadhyay: "Application Error message during dihedral optimization using FFTK"
- Previous message: Vikas Varshney: "how to put command line arguments in tcl script"
- In reply to: Vikas Varshney: "how to put command line arguments in tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]