% make cc -c rmstar.c rmstar.c:32: syntax error ...
plumbtest edit /usr/rob/src text addr=27 5 mem.c
typedef struct Plumbattr Plumbattr; typedef struct Plumbmsg Plumbmsg; struct Plumbmsg { char *src; /* source application */ char *dst; /* destination port */ char *wdir; /* working directory */ char *type; /* type of data */ Plumbattr *attr; /* attribute list */ int ndata; /* #bytes of data */ char *data; }; struct Plumbattr { char *name; char *value; Plumbattr *next; };
# image files go to page type is text data matches '[a-zA-Z0-9_\-./]+' data matches '([a-zA-Z0-9_\-./]+)\.(jpe?g|gif|bit|tiff|ppm)' arg isfile 0 plumb to image plumb client page -wi
% make nightmare>horse.gif
# .h files are looked up in /sys/include and passed to edit type is text data matches '([a-zA-Z0-9]+\.h)(:([0-9]+))?' arg isfile /sys/include/1 data set /sys/include/1 attr add addr=3 plumb to edit
# processes go to acid (assuming strlen(pid) >= 2) type is text data matches '[a-zA-Z0-9.:_\-/]+' data matches '[0-9][0-9]+' arg isdir /proc/0 plumb start window acid 0
# existing files, possibly tagged by address, go to editor type is text data matches '([.a-zA-Z0-9_/\-]*[a-zA-Z0-9_/\-])('addr')?' arg isfile 1 data set 1 attr add addr=3 plumb to edit plumb client window editor
editor=acme # or editor=sam addrelem='((#?[0-9]+)|(/[A-Za-z0-9_\^]+/?)|[.])' addr=:(addrelem([,;+\-]addrelem)*)
% echo 'type is text data is self-destruct plumb start rm -rf HOME' >> /mnt/plumb/rules
% cp /usr/user/lib/plumbing /mnt/plumb/rules
% make cc -c shaney.c shaney.c:232: i undefined ...
# faces -> new mail window for message type is text data matches '[a-zA-Z0-9_\-./]+' data matches '/mail/fs/[a-zA-Z0-9/]+/[0-9]+' plumb to showmail plumb start window edmail -s 0
% ls -l /mail/fs/mbox/25 d-r-xr-xr-x M 20 rob rob 0 Nov 21 13:06 /mail/fs/mbox/25/1 d-r-xr-xr-x M 20 rob rob 0 Nov 21 13:06 /mail/fs/mbox/25/2 --r--r--r-- M 20 rob rob 28678 Nov 21 13:06 /mail/fs/mbox/25/body --r--r--r-- M 20 rob rob 0 Nov 21 13:06 /mail/fs/mbox/25/cc ... % mail 25 messages : 25 From: presotto Date: Sun Nov 21 13:05:51 EST 1999 To: rob Check this out. ===> 2/ (image/jpeg) [inline] /mail/fs/mbox/25/2/fabio.jpg :
% cd /usr/rob/src % plumb mem.c
# rule set for microsoft word documents type is text data matches '[a-zA-Z0-9_\-./]+' data matches '([a-zA-Z0-9_\-./]+)\.doc' arg isfile 0 plumb start doc2txt data | \ plumb -i -d edit -a action=showdata -a filename=0
# man index entries are synthesized type is text data matches '([a-zA-Z0-9_\-./]+)\(([0-9])\)' plumb start man 2 1 | \ plumb -i -d edit -a action=showdata -a filename=/man/1(2)
% src plumb