file picker
Barry Byrne
barry.byrne at wbtsystems.com
Thu Aug 21 10:02:37 PDT 2003
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 at freebsd.org
> [mailto:owner-freebsd-questions at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list