diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /dis/demo/chat | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'dis/demo/chat')
| -rw-r--r-- | dis/demo/chat/chat.dis | bin | 0 -> 3995 bytes | |||
| -rwxr-xr-x | dis/demo/chat/chatclient | 20 | ||||
| -rw-r--r-- | dis/demo/chat/chatsrv.dis | bin | 0 -> 4058 bytes |
3 files changed, 20 insertions, 0 deletions
diff --git a/dis/demo/chat/chat.dis b/dis/demo/chat/chat.dis Binary files differnew file mode 100644 index 00000000..9dd3a3a3 --- /dev/null +++ b/dis/demo/chat/chat.dis 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} +} diff --git a/dis/demo/chat/chatsrv.dis b/dis/demo/chat/chatsrv.dis Binary files differnew file mode 100644 index 00000000..f333c6be --- /dev/null +++ b/dis/demo/chat/chatsrv.dis |
