pouzivam nasledujici...

print "Space ussage: $ussage%\n";
if ($ussage>  95)
  {
    # cleaning up old files
    `ls -t $nfdir/nfcapd.* | head -n 1440 | xargs rm -f`;
  }

Smaze nejstarsich 1440 souboru (v mem pripade počet souboru za poslednich
24h).

Milan

Neni to spatny, ale to zase maze danej pocet souboru. Neresi to mnozstvi dat.
--
FreeBSD mailing list (users-l@freebsd.cz)
http://www.freebsd.cz/listserv/listinfo/users-l

Odpovedet emailem