From owner-freebsd-audit Sun Feb 9 4:47: 3 2003 Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF7F337B401 for ; Sun, 9 Feb 2003 04:47:02 -0800 (PST) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 8567C43F85 for ; Sun, 9 Feb 2003 04:46:59 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: (qmail 35338 invoked by uid 1001); 9 Feb 2003 12:46:54 -0000 Date: Sun, 9 Feb 2003 13:46:54 +0100 From: Erik Trulsson To: Sean Chittenden Cc: audit@FreeBSD.org Subject: Re: Making random(6) actually useful... Message-ID: <20030209124654.GA35137@falcon.midgard.homeip.net> References: <20030209104727.GO15936@perrin.int.nxad.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030209104727.GO15936@perrin.int.nxad.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 09, 2003 at 02:47:27AM -0800, Sean Chittenden wrote: > There isn't much useful functionality that I'm aware of that comes out > of random(6) as its implemented currently. What I was originally out > to do was to randomize the search order of dist sites for > ports/packages and didn't find anything that did what I wanted and was > BSD licensed (or small). The new random(6) functionality allows for: > > 1) randomizing the order of downloads from a mirrors list. For > example, in a Makefile: > > DOWNLOAD_SITES= `echo -n "${MASTER_SITE_RUBY} "| random -wf -` > DOWNLOAD_SITES+= MASTER_SITE_LOCAL > > 2) randomizing playlists for MP3s: > > find ~/mp3s -name '*.mp3' | random -f - > play_list.m3u Have you looked at misc/shuffle from the ports collection? It seems to do what you want, is small and is BSD-licensed. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message