VMD-L Mailing List
From: maria goranovic (mariagoranovic_at_gmail.com)
Date: Mon Feb 23 2009 - 09:19:24 CST
- Next message: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Previous message: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- In reply to: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Next in thread: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Reply: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Thank you for the tips, Axel.
I load a pdb file in VMD, and then I try to run play myscript where myscript
is essentially a set of vmd commands, which also reads in a specific
trajectory file called file.dcd. What I want to do is replace file.dcd by a
variable like $file.
>From the vmd console on the GUI, this does not work:
play myscript -args file.dcd
Usually something like this works for a vmd script, but running from the
unix console
*
*vmd -dispdev text -args file.dcd
I hope that clarifies the question?
-Maria
On Mon, Feb 23, 2009 at 4:08 PM, Axel Kohlmeyer <akohlmey_at_cmm.chem.upenn.edu
> wrote:
> On Mon, 23 Feb 2009, mariagoranovic_at_gmail.com wrote:
>
> MG> Hi,
> MG>
> MG> Is it possible to pass arguments to the play or source command if one
> is
> MG> running a script from the vmd console ? -args does not work
>
> yes, it is possible, and -args works just fine, only that it may
> not work the way you use it. but since you don't describe what
> you did and how it failed, there is little possibility to help you.
>
> since it hasn't been posted on this list in a while, it might help
> people in general to first have a look at this document before posting
> questions.
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> the general rule is: the better the question, the better the answer.
>
> cheers,
> axel.
>
> MG>
>
> --
> =======================================================================
> Axel Kohlmeyer akohlmey_at_cmm.chem.upenn.edu http://www.cmm.upenn.edu
> Center for Molecular Modeling -- University of Pennsylvania
> Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
> tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425
> =======================================================================
> If you make something idiot-proof, the universe creates a better idiot.
>
-- Maria G. Technical University of Denmark Copenhagen
- Next message: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Previous message: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- In reply to: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Next in thread: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Reply: Axel Kohlmeyer: "Re: passing arguments to a vmd script which is executed using play or source"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]