wm: doc

ref: e8f90bdceda7eb29b9c354434c1c374b875c6f4a
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/