From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 10:02:36 2003 Return-Path: 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 D856816A4C0 for ; Thu, 21 Aug 2003 10:02:36 -0700 (PDT) Received: from mail.wbtsystems.com (onyx.dublin.wbtsystems.com [193.120.231.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CE8243FB1 for ; Thu, 21 Aug 2003 10:02:33 -0700 (PDT) (envelope-from barry.byrne@wbtsystems.com) Received: from spiral ([193.120.231.190]) (authenticated bits=0) by mail.wbtsystems.com (8.12.9/8.12.9) with ESMTP id h7LH2GNs004958; Thu, 21 Aug 2003 18:02:16 +0100 (IST) From: "Barry Byrne" To: "Questions" Date: Thu, 21 Aug 2003 18:02:14 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3F44F508.3020704@earthlink.net> Importance: Normal X-WBT-Authenticated-User: bb X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) cc: Walter Subject: RE: file picker X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 17:02:37 -0000 ls -1 | perl -e 'srand; rand($.) < 1 && ($filename = $_) while <>; print $filename;' - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Walter > Sent: 21 August 2003 17:36 > To: Questions > Subject: file picker > > > Hi All, > > I want to run a cron job to upload a different image > file to a web site as a new background every night. > > I need a way to automatically select a different file > from a directory which I will populate over time, and > then feed that name to the upload script. I can't find > anything like this in the ports. Can someone suggest > a utility, script, et cetera, for this? Otherwise, I'm > prepared to write my own, but I don't want to re-invent > the wheel, as the saying goes. Thanks. > > Please CC me as I'm not currently subscribed to the > List. > > Walter > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"