asynchronous writing and reading of a file
- by tazim
hi,
I have two processes.
1.) One processes is redirecting output of some unix
command to a file on server side.the data is always
appended to the file
eg :
find / > tmp.txt
2.)Another process is opening and reading
the same file and storing it in a string and sending the
entire string to the client
Now, this things take simultaneously. I am using python.
Any suggestion as in what can be possible ways to implement this scenario .
Please explain with sample code .
Thanks in advance .
Tazim.