Another Inferno plan.
I saw that you could create a stream of inotify notices, the inotify man page includes an example to watch a dir so I'm hoping to use that.
First problem however is
; ls /dev/inotify
ls: /dev/inotify: No such file or directory
a red herring
# inotifywait /tmp/f &
Setting up watches.
Watches established.
# echo > /tmp/f
/tmp/f MODIFY
A couple of hours in and I have my message format.
'filename' eventmask 'target'
I'm having the age old fifo mismatch problem, nothings coming out while the cmd is in Execute mode. It comes out when status is Done in the test I got working :(
Next morning comes around and I notice that I'm only rebuilding a.out and not the binary I'm running from inferno, doh!
A few hours later and ver 1.0 is done.
I'll put it on sources when I work out how I'm going to do it.
Next job is spawning another thread on the Linux side to cope with new watch notices.
Record of some of the computer tech I deal with so that it's documented at least somewhere.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment