VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Jul 29 2004 - 21:50:46 CDT
- Next message: Daniel B. Faken: "1.8.3"
- Previous message: Luis Gracia: "tcl: wait for exec"
- In reply to: Luis Gracia: "tcl: wait for exec"
- Next in thread: Luis Gracia: "Re: tcl: wait for exec"
- Reply: Luis Gracia: "Re: tcl: wait for exec"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Did you try adding an ampersand to the end of the piped command
i.e.:
set pipe_id [open "| xmgrace -pipe & " w]
When used with Tcl's own exec that allows you to run in the background,
so if you're lucky it'll work for your piped command as well. If not
there's probably still a good way of doing it similarly.
John Stone
vmd_at_ks.uiuc.edu
On Thu, Jul 29, 2004 at 08:09:04PM -0400, Luis Gracia wrote:
> Hi everyone,
>
> this is more of a tcl question. I am trying to run an external program
> (xmgrace) from a vmd plugin, and would like to execute it and without
> closing xmgrace use vmd normally. I was able to open xmgrace from within
> the plugin, but vmd freezes until I close xmgrace. Is there any way to
> tell tcl not to wait till xmgrace is finished?
> This is code that makes troubles:
> set pipe_id [open "| xmgrace -pipe" w]
> fconfigure $pipe_id -buffering line
> puts $pipe_id "@page size 576, 432"
> .....
> close $pipe_id
>
> Thanks,
>
> Luis
>
> --
> Luis Gracia, PhD
> Department of Physiology & Biophysics
> Weill Medical College of Cornell University
> 1300 York Avenue, Box 75
> New York, NY 10021
>
> Tel: (212) 746-6375
> Fax: (212) 746-6361
> lug2002_at_med.cornell.edu
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Daniel B. Faken: "1.8.3"
- Previous message: Luis Gracia: "tcl: wait for exec"
- In reply to: Luis Gracia: "tcl: wait for exec"
- Next in thread: Luis Gracia: "Re: tcl: wait for exec"
- Reply: Luis Gracia: "Re: tcl: wait for exec"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]