From: Luis Gracia (lug2002_at_med.cornell.edu)
Date: Thu Jul 29 2004 - 19:09:04 CDT

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