From owner-freebsd-questions@FreeBSD.ORG Mon Apr 3 06:29:12 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8232916A400 for ; Mon, 3 Apr 2006 06:29:12 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19F1D43D45 for ; Mon, 3 Apr 2006 06:29:12 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id l8so1481947nzf for ; Sun, 02 Apr 2006 23:29:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Z2hscweCJ5kKHAwJU0PDJ8bW0QLL1/+gQOpTAXhvHi1R3EPv2bIx+ZpLZ2Q8W4pbcWYRMT9HkZAcKOqwMD+sEXbngh1wOg86Z/bDB9yfY8oO0ylwBz1gqQj2j97oMx0cLEViZgZKGh83y9XVo9bMyfgAQ94qHhOHzmHLlBHNk4M= Received: by 10.36.247.20 with SMTP id u20mr2144914nzh; Sun, 02 Apr 2006 23:29:11 -0700 (PDT) Received: by 10.37.22.74 with HTTP; Sun, 2 Apr 2006 23:29:11 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2006 10:29:11 +0400 From: "Andrew Pantyukhin" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: watch(8), xwatchwin as courseware [solved by script/tail] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 06:29:12 -0000 Hi. I have to teach no-frills freebsd courses. I wonder how I can arrange all the students seeing on their displays what I'm typing in my xterm in real-time. I haven't been very successful with xwatchwin (I've been able to see it in action but it wasn't very pleasant, and it dumps core on me lately). watch(1) seems to be ideal for my purposes - students log on to my box (maybe even gain root privileges if I don't tweak devfs) and watch my pty. They can even copy and paste what I'm typing in their xterms. But there's a show- stopper: it seems that only one snp(4) device can attach to a tty at the same time and only one watch(1) can use a snp(4) at the same time. So what do you suggest? Hmm... Just as I was typing this I saw a simple solution. I can use script(1) dumping to a file with -t0 (flush on every char) and people can just tail -f this file. Performance is great on a local machine, but is very laggy over NFS... I tried 'mount -o acregmin=3D0,acregmax=3D0' and the perfomance is almost real-time now. Great :-) It really is true that many solutions come just as soon as you try to describe your problem clearly :-)