From: Subbarao Kanchi (ksubbu85_at_gmail.com)
Date: Wed Jan 22 2014 - 15:08:26 CST

Hi Maxim Belkin,
                          Than you for your quick response and I just have
tested these commands now and working good with out any error.

Regards,
Subbarao Kanchi.

On Thu, Jan 23, 2014 at 2:25 AM, Maxim Belkin <mbelkin_at_ks.uiuc.edu> wrote:

> That should work just fine. Try something like this:
>
> mol new {your_psf_file.psf} type {psf} first 0 last -1 step 1 waitfor 1
> mol add file {your_dcd_file.dcd} type {dcd} first 5000 last -1 step 1
> waitfor -1 top
>
>
>
> On Jan 22, 2014, at 2:21 PM, Subbarao Kanchi <ksubbu85_at_gmail.com> wrote:
>
> Hi Maxim Belkin,
> vmd -dispdev text (to open vmd in text mode
> ) and the following commands were run in vmd terminal of vmd text mode.
>
> mol new .psf type psf
> mol addfile .dcd type dcd first 5000 last -1
> step 1
> I source same commands by writing in a .tcl file (script.tcl) and *source
> script.tcl* in vmd terminal of vmd text mode. it yields the error "*invalid
> command name "last"*
>
>
>
> Regards,
> Subbarao Kanchi.
>
>
>
>
> On Thu, Jan 23, 2014 at 1:32 AM, Maxim Belkin <mbelkin_at_ks.uiuc.edu> wrote:
>
>> Hi Subbarao,
>>
>> How exactly do you call your script?
>>
>> Maxim
>>
>> On Jan 22, 2014, at 1:29 PM, Subbarao Kanchi <ksubbu85_at_gmail.com> wrote:
>>
>> Dear All,
>> I am using VMD in test mode (vmd -dispdev text ). I run the
>> following commands in vmd command prompt and are working good. But I write
>> same commands in a script.tcl and script is sourced in command prompt, it
>> gives an error "*invalid command name "last"*". I will appreciate any
>> suggestion to over come this problem.
>>
>> mol new .psf type psf
>> mol addfile .dcd type dcd first 5000 last -1 step 1
>>
>>
>>
>> Thanks and regards,
>> Subbarao Kanchi.
>>
>>
>>
>
>