From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Tue Mar 01 2022 - 09:00:17 CST

You can put the commands into a text file and then read those from the
command line with:

vmd -e commands.txt

or from within the vmd console (or within the commands.txt file) using
either the "source someotherfile.txt" or "play someotherfile.txt" commands.

On Tue, Mar 1, 2022 at 9:44 AM Marco Di Gennaro (TME) <
Marco.Di.Gennaro_at_external.toyota-europe.com> wrote:

> • PUBLIC 公開
>
> Hello all,
>
>
>
> I would like to store all VMD setting in a text file, to be read multiple
> times.
>
> I mean for example “pbc box”, or drawing methods to “DynamicBonds” and
> ideally create a movie.
>
>
>
> I have tried “vmd `cat readfile`” where readfile contains all the LAMMPS
> dumpfiles I want to visualize.
>
> This works, but if I add the topol command (such as “pbc box”), VMD
> interprets it as another file to read (and issues an ERROR).
>
>
>
> Thank you for your help
>
>
>
> Best Regards,
>
>
>
> Marco
>
>
>
> This e-mail may contain confidential information. If you are not an
> addressee or otherwise authorised to receive this message, you should not
> use, copy, disclose or take any action based on this e-mail. If you have
> received this e-mail in error, please inform the sender promptly and delete
> this message and any attachments immediately.
>

-- 
Dr. Axel Kohlmeyer  akohlmey_at_gmail.com  https://urldefense.com/v3/__http://goo.gl/1wk0__;!!DZ3fjg!uYMsxpio-31mv3Yyma9P3q2nKse52B4Zle3u0ISGqjADZYPbqQrLuQ_4lRwoi0MAjw$ 
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.