From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2567a7621663a382a760af64af957496@plan9.ucalgary.ca> To: 9fans@cse.psu.edu Subject: Re: [9fans] cpu server From: andrey mirtchovski In-Reply-To: <6ea38d157a7cac487b3ebb0ba8467d6c@vitanuova.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 9 Feb 2004 11:49:30 -0700 Topicbox-Message-UUID: d6068488-eacc-11e9-9e20-41e7f4b1d025 >> put the wiki in a replica and you'll get updates unformation >> automagically :) > > well... if wikifs provided date stamps. > >> I'm looking at the wikifs right now and it looks like there's enough >> timestamps there to make such a script easy to write. > > to me, it looks as if wikifs doesn't maintain modification times > or Qid version numbers. > > maybe that's the easiest modification to make; > then a simple "ls -lt" would go a long way... not at the top-level directory but on the ones underneath it does: this ugly piece tells me the directories changed in the past week: #!/bin/rc rfork en ramfs test -e /srv/wiki || srv 'net!plan9.bell-labs.com!wiki' wiki || exit mount -c /srv/wiki /mnt/wiki cd /mnt/wiki for (i in *) { for(j in $i/*) { if(test '(' -d $j ')' -a '(' ! $j -older 7d ')') echo $i # or echo $j to see the actual timestamp } } } if you run it you'll see at least two (so far) -- [dj]'s_jedimaters and grumpybear both have nothing to do with plan9 :)