Reading from stdin - problems

Dave Cragg dcragg at lacscentre.co.uk
Mon Oct 25 03:21:19 EDT 2004


On 25 Oct 2004, at 02:14, K wrote:

>
>
> 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
>
As far as I know, there is no "with messages" form of the "read" 
command.


Dave



More information about the use-livecode mailing list