On Monday, December 2, 2002, at 11:50 AM, jfm wrote:


On Monday, Dec 2, 2002, at 08:09 Europe/Brussels, Ferdinand Klinzer wrote:

I like to compile all source packages in fink on my xserve apt-get mirror.
But how many Gig. are there ??
Here ~1G _ so count  < ~1.4G.
(#du -sS /sw/src
1055750 /sw/src)

JF Mertens
I'm no perlhacker, but the following lines of perl report the size of a file or webpage

#!/usr/bin/perl
use LWP::Simple;
$theurl= "http://www.aldaily.com";;;
print getsize($theurl);

sub getsize
{
$sum=0;
while($url=pop())
{
@response =head($url);
if($response[1]){
$sum=$sum=$response[2];
}
return sum;
}

Perhaps a similar function can be incorporated in the fink libraries.

Jeremy



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to