From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <138575260905080241l370fa5d9re4a5011c49949ca3@mail.gmail.com> References: <138575260905080241l370fa5d9re4a5011c49949ca3@mail.gmail.com> Date: Fri, 8 May 2009 08:31:54 -0700 Message-ID: Subject: Re: [9fans] command output on acme From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: f697c95c-ead4-11e9-9d60-3106f5b1d025 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