Re: Get NAMD version from the tcl script interface

From: Brian Radak (brian.radak_at_gmail.com)
Date: Wed May 09 2018 - 10:38:36 CDT

I don't know of any such option "--version" for NAMD, although it's true
you can extract the version from a run by using grep, etc.

On Wed, May 9, 2018 at 11:06 AM, Ajasja Ljubetič <ajasja.ljubetic_at_gmail.com>
wrote:

> Hi,
>
> since you have the full power of TCL, I guess you could hack it by saving
> the output of the command
>
> `namd --version | grep Info: | head -1 | cut -d ' ' -f 3`
>
> to a tcl variable. I guess exec
> <https://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html> could be used. Or
> maybe save the namd version to a shell variable before running namd and
> retrieving it in the script.
>
> Best,
> Ajasja
>
> On Wed, 9 May 2018 at 16:38, Brian Radak <brian.radak_at_gmail.com> wrote:
>
>> Actually I think this feature is still awaiting final comment. It might
>> be available in the nightly build in a few weeks, but, as you said, only
>> for the 2.12 development version or even just the 2.13 release.
>>
>> On Wed, May 9, 2018 at 7:50 AM, Giacomo Fiorin <giacomo.fiorin_at_gmail.com>
>> wrote:
>>
>>> You cannot for versions up to 2.12, but the feature has just been added--0000000000004709ec056bc7b2df--

This archive was generated by hypermail 2.1.6 : Mon Dec 31 2018 - 23:21:05 CST