wm: doc

ref: f6b4d9b9dc53c2842b23dee80081cb5a874a1138
dir: /9gridchan.ms/

View raw version
# 9gridchan

## From Plan9

Replace $user with your username. 



    ; 9fs tcp!cloud9p.org!900 /n/chat
    ; cat /n/chat/chat &
    ; while() echo `{date -u -f 'hh:mm'} '<'$user'>' `{read} >> /n/chat/chat
    



## From UNIX:

Install [plan9port][1]. 

On OpenBSD: either libixp or plan9port works, just replace command name, 



    $ doas pkg_add plan9port
    

Now to connect, run: 



    $ 9 9p -a 'tcp!cloud9p.org!900' read chat | sed "s/$/$(echo '\a')/" &
    while read l; do echo $(date -u "+%H:%M") $USER → "$l"
    done | 9 9p -a 'tcp!cloud9p.org!900' write chat
    

Note: hubfs does not work with tail, so it is not possible to run tail on the chat file.

 [1]: https://9fans.github.io/plan9port/