From: Benjamin Bouvier (benjamin.bouvier_at_ibcp.fr)
Date: Mon Aug 10 2009 - 03:07:38 CDT

Try vmd -eofexit < yourscript.tcl
Cheers,

Benjamin

On Mon, 10 Aug 2009 05:21:34 +0200, He Yuhui <yuhuihe_at_ime.pku.edu.cn>
wrote:

> Dear all,
>
> Right now I am writing a shell script to automatically run a series
> of tcl files, such as 1_a.tcl, 2_b.tcl, and so on:
>
> vmd -e WORKINGDIR/1_a.tcl
> vmd -e WORKINGDIR/2_b.tcl
> ...
>
> However, after execution of first vmd command, the vmd does not quit
> automatically. Therefore, the second vmd command could not start
> automatically.
>
> So, how to write a command to close vmd in shell script?
>
> Thanks and regards!
>
> Yuhui He
>
> ---
> Dr. Yuhui He(何毓辉)
> Institute of Microelectronics, Chinese Academy of Sciences
> Beijing 100029, China
>
>