Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in3.uu.net!207.172.3.52!feed1.news.erols.com!news-peer.sprintlink.net!news.sprintlink.net!Sprint!EU.net!Norway.EU.net!uninett.no!news.uni-c.dk!news.uni-c.dk!guldager.uni-c.dk!not-for-mail From: unimgj@guldager.uni-c.dk (Morten Guldager Jensen) Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: Help a UNIX Girl :) Date: 9 May 1997 14:52:45 GMT Organization: News Server at UNI-C, Danish Computing Centre for Research and Education. Lines: 28 Message-ID: <5kvdnt$bai$2@news.uni-c.dk> References: <5kuqjf$8ia$1@news.NetVision.net.il> NNTP-Posting-Host: guldager.uni-c.dk X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:6840 Caroline Parker (wlidir@netvision.net.il) wrote: : : 07 1 * * * find usr/mail/ -type f -size +102400c -print | mail -s 'OVER 100k Files' caroline@mydomain.com : : PLEASE!.. help me to modify this line to let me check the users directories... Any thing for a girl... Make a script containing the folowing, and call it from cron: #!/bin/csh -f foreach d (/usr/home/*) set s = `du -s $d` set s = $s[1] if ($s > 100000) then mail -s "OVER $s K Files in $d" caroline@mydomain.com endif end /Morten %-) -- -------------------------------------------------------------- Morten.Guldager.Jensen@uni-c.dk UNI-C Denmark. +45 3587 8935 -------------------------------------------------------------- * Linux is FREE, and if you don't like it YOU can CHANGE it. *