From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7286 invoked by alias); 14 Jul 2010 15:00:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15189 Received: (qmail 6320 invoked from network); 14 Jul 2010 15:00:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at smasher.org designates 69.55.237.145 as permitted sender) cc: zsh-users@zsh.org Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Thu, 15 Jul 2010 03:00:04 +1200 (NZST) From: Atom Smasher In-Reply-To: <1007142325160.5546@smasher> Message-ID: <1007150255430.5546@smasher> MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt References: <1007130241570.5546@smasher> <201007121737.21296.joke@seiken.de> <201007121745.20332.joke@seiken.de> <20100712161519.GO1499@prunille.vinc17.org> <1007140055140.5546@smasher> <1007142325160.5546@smasher> Subject: Re: zsh portable script To: "Benjamin R. Haskell" X-POM: The Moon is Waxing Crescent (12% of Full) X-Hashcash: 1:20:1007141500:zsh@benizi.com::4sTsM7x7ti1x2u/h:0000000000000000000 0000000000000000000000006J0D X-Hashcash: 1:20:1007141500:zsh-users@zsh.org::eAw2CmrTK97H8V99:0000000000000000 00000000000000000000000034Rw On Wed, 14 Jul 2010, Atom Smasher wrote: > On Tue, 13 Jul 2010, Benjamin R. Haskell wrote: > >> Are permissions the reason you suggest running it under cron? >> Otherwise, why not just regenerate in precmd()? > ================= > > now i remember why i'm running under cron, instead of in precmd... > http://smasher.org/tmp/zsh-bsd-sysctl-slow.png > > freebsd's sysctl is way too slow to invoke every time i draw a prompt. > linux's /sys/ and /proc/ are reasonably fast, but i already had a cron > job written for bsd, and very minor changes were needed to make it work > with linux. ====================== it was just pointed out on freebsd-hackers list that this may not be a freebsd v linux issue... it may be the hardware. eventually i'll have to reboot this freebsd laptop, and when i do i'll check it out with an ubuntu CD. if that also runs slow, then the battery script will have to stay separate from the zshrc... unless some other changes are made...? -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "Don't fight it son. Confess quickly! If you hold out too long you could jeopardize your credit rating." -- Brazil