Reading from stdin - problems

K nnoydb at excite.com
Sun Oct 24 21:14:32 EDT 2004



I am attempting to read from stdin with messages.  I have attempted this with a file and with a pipe (created by a external that executes a CreateProcess).  When the with messages is present the Revolution stand-alone program "child" using the following code fails the display the messages sent to its stdin.  However, if the 'with messages' portion is left off the command completes without incident.  Any suggestions?

K.



on mouseUp
  
  put "-Reading-" & cr into field edtOutput
  
  local tXml 
  read from stdin at start until numToChar( 3 ) with messages
  put it & cr after field edtOutput
  put "EOL" & cr after field edtOutput
  
end mouseUp

-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
Disclaimer:

Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental. 
Any resemblance between the above and my own views is non-deterministic.

 The question of the existence of views in the absence of anyone to hold
them
is left as an exercise for the reader. The question of the existence of
the reader
 is left as an exercise for the second god coefficient. 
(A discussion of non-orthogonal, non-integral polytheism is beyond the
scope of this article.)



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


More information about the use-livecode mailing list