comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Implementing Time-outs in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Implementing Time-outs in IDL [message #7704 is a reply to message #7703] Sat, 04 January 1997 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <XXX-0301972303470001@biad27.uthscsa.edu>, XXX (Steve) writes:
|> If the daemon server is off-line the spawn command hangs. Is there a way
|> in IDL to cause a command to time-out? I would like my program to continue
|> executing if the spawn command does not return a result in X seconds.

Probably the best thing would be to rewrite your spawned command so that
you can start it in the background, piping the results to a file for
retrieval by IDL. I.e.,

spawn,"daemon > daemon.out &"
wait,10
<read file daemon.out>

Stein Vidar H. Haugan
[Message index]
 
Read Message
Read Message
Previous Topic: CD-R Media for Sale
Next Topic: Implementing Time-outs in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 22:07:33 PST 2025

Total time taken to generate the page: 0.40066 seconds