From owner-freebsd-gnome@FreeBSD.ORG Tue Apr 15 14:33:15 2003 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FDA837B401 for ; Tue, 15 Apr 2003 14:33:15 -0700 (PDT) Received: from damo.axelero.hu (fe01.axelero.hu [195.228.240.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9CA143F85 for ; Tue, 15 Apr 2003 14:33:13 -0700 (PDT) (envelope-from gabor@zahemszky.hu) Received: from localhost (localhost-02 [127.0.2.1]) by damo.axelero.hu (8.12.9/8.12.9) with SMTP id h3FLXC0A093867 for ; Tue, 15 Apr 2003 23:33:12 +0200 (CEST) Received: from fe01.axelero.hu [127.0.2.1] via SMTP gateway by damo []; id A06EA869CE7 at Tue Apr 15 23:33:12 2003 Received: from Picasso.Zahemszky.HU (adsl-66-72.adsl-pool.axelero.hu [62.201.72.66]) by fe01.axelero.hu (8.12.9/8.12.9) with ESMTP id h3FLXBn9093808 for ; Tue, 15 Apr 2003 23:33:12 +0200 (CEST) Received: from Picasso.Zahemszky.HU (localhost.Zahemszky.HU [127.0.0.1]) by Picasso.Zahemszky.HU (8.12.9/8.12.9) with ESMTP id h3FLfQpj099223 for ; Tue, 15 Apr 2003 23:41:26 +0200 (CEST) (envelope-from zgabor@Picasso.Zahemszky.HU) Received: (from zgabor@localhost) by Picasso.Zahemszky.HU (8.12.9/8.12.9/Submit) id h3FLfQZK099222 for freebsd-gnome@freebsd.org; Tue, 15 Apr 2003 23:41:26 +0200 (CEST) Date: Tue, 15 Apr 2003 23:41:26 +0200 From: Zahemszky =?iso-8859-2?Q?G=E1bor?= To: freebsd-gnome@freebsd.org Message-ID: <20030415214126.GA99157@Picasso.Zahemszky.HU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 4.8-STABLE User-Agent: Mutt/1.5.4i Subject: LAN-stat applet X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gabor@zahemszky.hu List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 21:33:15 -0000 Hi! I've found, that on GNOME 2.2, the system monitoring applett cannot correctly handle the machine's lan interfaces. 1) I cannot configure what interface(s) I'd like to watch. It has slip /plip / ethernet /other . Maybe it's OK, on linux, which has a generic eth0 interface, but it's incorrect in *BSD/Solaris/etc, which has different interface names. (As I has a PPPoE connection, I have a tun0 on my ed0 card, so it has to be in the other section. But doesn't work that way either.) 2) I'd like a different kind of net-stat-applet (eg, such a monitoring tool, as I can find on IceWM). I can configure the interface, and different colors show different things, eg: red: incoming, blue: outgoing, or the like. So are there anybody, who knows such a toy? (No, I don't want gkrellm2). Only a little 10 pixel wide window in GNOME's panel. Or some trick, to teach that GNOME-applett, to watch another netif (without recompiling) ? Thanx, Zahy < Gabor at Zahemszky dot HU > -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z ;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;j="$j $i";typeset +l i;};print "$j"