win takes a command to run as an argument.

win tail -f yourfile

would be almost exactly what you want.
You'd just delete the window when you're done watching.

The only problem is that on Plan 9, Del in the
new window doesn't send a "hangup" note to tail,
but it should.

% diff -c /n/sources/plan9/acme/bin/source/win/main.c .
/n/sources/plan9/acme/bin/source/win/main.c:107,112 - ./main.c:107,113
        while(*s==' ' || *s=='\t' || *s=='\n')
                s++;
        if(strcmp(s, "Delete")==0 || strcmp(s, "Del")==0){
+               write(notepg, "hangup", 6);
                windel(w, 1);
                threadexitsall(nil);
                return 1;
%

Russ

Reply via email to