[PyMOL] Persistent PyMOL pipes? Preventing a call to 'cmd.quit()'.

2006-10-29 Thread Edward d'Auvergne

Hi,

I am the project administrator for the open source program relax
(http://nmr-relax.com or https://gna.org/projects/relax) and am
interested in interfacing relax with PyMOL.  relax is a program for
studying the dynamics of proteins, RNA, or other organic molecules
through the analysis of NMR relaxation data and I would like to
display the dynamics results superimposed onto molecular structures
within PyMOL.  I have attempted to open a PyMOL pipe using the '-p'
flag however, when relax finishes and closes the pipe, PyMOL
terminates printing the message:

 PyMOL: normal program termination.

Is there a simple way to keep the PyMOL binary running after a script
terminates?  I've searched through the sources but a solution isn't
immediately obvious.  I've tracked back from the file 'layer5/main.c'
where the 'printf()' statement is located back to the function
'CmdQuit' in the file 'layer4/Cmd.c', but can't find what is calling
the 'cmd.quit()' method.

Thanks,

Edward



Re: [PyMOL] Persistent PyMOL pipes? Preventing a call to 'cmd.quit()'.

2006-10-29 Thread DeLano Scientific
Edward,

Add a "K" keepalive option along with the -p:

pymol -pK

Cheers,

DeLano Scientific LLC
Email Support Services 

> -Original Message-
> From: pymol-users-boun...@lists.sourceforge.net 
> [mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf 
> Of Edward d'Auvergne
> Sent: Sunday, October 29, 2006 9:01 PM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] Persistent PyMOL pipes? Preventing a call to 
> 'cmd.quit()'.
> 
> Hi,
> 
> I am the project administrator for the open source program 
> relax (http://nmr-relax.com or 
> https://gna.org/projects/relax) and am interested in 
> interfacing relax with PyMOL.  relax is a program for 
> studying the dynamics of proteins, RNA, or other organic 
> molecules through the analysis of NMR relaxation data and I 
> would like to display the dynamics results superimposed onto 
> molecular structures within PyMOL.  I have attempted to open 
> a PyMOL pipe using the '-p'
> flag however, when relax finishes and closes the pipe, PyMOL 
> terminates printing the message:
> 
>   PyMOL: normal program termination.
> 
> Is there a simple way to keep the PyMOL binary running after 
> a script terminates?  I've searched through the sources but a 
> solution isn't immediately obvious.  I've tracked back from 
> the file 'layer5/main.c'
> where the 'printf()' statement is located back to the 
> function 'CmdQuit' in the file 'layer4/Cmd.c', but can't find 
> what is calling the 'cmd.quit()' method.
> 
> Thanks,
> 
> Edward
> 
> --
> ---
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier Download IBM WebSphere Application Server 
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
dat=121642
> ___
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users
> 





Re: [PyMOL] Persistent PyMOL pipes? Preventing a call to 'cmd.quit()'.

2006-10-29 Thread Edward d'Auvergne

Thank you.  That option kept the PyMOL pipe alive.  As the option is
stored in the structure 'options.keep_thread_alive', would this '-K'
option cause a different behaviour of the program or is the program
simply run as a parent thread and this option keeps the parent alive?

Cheers,

Edward


On 10/30/06, DeLano Scientific  wrote:

Edward,

Add a "K" keepalive option along with the -p:

pymol -pK

Cheers,

DeLano Scientific LLC
Email Support Services

> -Original Message-
> From: pymol-users-boun...@lists.sourceforge.net
> [mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf
> Of Edward d'Auvergne
> Sent: Sunday, October 29, 2006 9:01 PM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] Persistent PyMOL pipes? Preventing a call to
> 'cmd.quit()'.
>
> Hi,
>
> I am the project administrator for the open source program
> relax (http://nmr-relax.com or
> https://gna.org/projects/relax) and am interested in
> interfacing relax with PyMOL.  relax is a program for
> studying the dynamics of proteins, RNA, or other organic
> molecules through the analysis of NMR relaxation data and I
> would like to display the dynamics results superimposed onto
> molecular structures within PyMOL.  I have attempted to open
> a PyMOL pipe using the '-p'
> flag however, when relax finishes and closes the pipe, PyMOL
> terminates printing the message:
>
>   PyMOL: normal program termination.
>
> Is there a simple way to keep the PyMOL binary running after
> a script terminates?  I've searched through the sources but a
> solution isn't immediately obvious.  I've tracked back from
> the file 'layer5/main.c'
> where the 'printf()' statement is located back to the
> function 'CmdQuit' in the file 'layer4/Cmd.c', but can't find
> what is calling the 'cmd.quit()' method.
>
> Thanks,
>
> Edward
>
> --
> ---
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier Download IBM WebSphere Application Server
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
dat=121642
> ___
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users
>