[Gambas-user] Is it possible to do both read and write to the same process thru exec
Brian G
brian at westwoodsvcs.com
Mon Apr 13 23:45:04 CEST 2020
Is it possible to do read and write to the same process
example
mmproc = exec ["gtee"] for read write as "rr"
gtee just reads stdin and writes stdout very simple program to test how to get exec read write working
if i do both then i can write
mmproc.begin()
print #mmproc, "sdfffffffffffffffffffffffffffffffffff\nyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy\n"
mmproc.send()
I tried to do a mmproc.close() but I just get a kill signal rr_kill()
But no read event is ever recieved in my process from mmproc
defined events are
public sub rr_read()
.......
end
public sub rr_error(xx as string)
......
end
if I only do the write then gtee displays the output to the console
if i only do read then gtee will read from the console and when it writes rr_read is called
Am I doing something wrong here?
Could use some input??? L.O.L
Thank You
Brian G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200413/15f256d7/attachment.html>
More information about the User
mailing list