From 46439007cf417cbd9ac8049bb4122c890097a0fa Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 20:52:35 +0000 Subject: 20060303-partial --- dis/demo/chat/chatclient | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 dis/demo/chat/chatclient (limited to 'dis/demo/chat/chatclient') diff --git a/dis/demo/chat/chatclient b/dis/demo/chat/chatclient new file mode 100755 index 00000000..11ebf15b --- /dev/null +++ b/dis/demo/chat/chatclient @@ -0,0 +1,20 @@ +#!/dis/sh +load std +autoload=std +ndb/cs + +chatroom=$1 + +fn ck { + or {$*} { + echo chatclient: exiting >[1=2] + raise error + } +} +user="{cat /dev/user} + +ck mount -A 'tcp!$registry!registry' /mnt/registry +ck /dis/grid/remotelogon wm/wm { + k = /usr/$user/keyring/default + grid/find -a resource chat -a pk `{getpk -s $k} Enter {demo/chat/chat /n/client} Shell {wm/sh} +} -- cgit v1.2.3