Help w/Disk usage utility

Jean-Pierre Radley jpr at jpradley.jpr.com
Mon Mar 4 05:30:08 AEST 1991


In article <44966 at ut-emx.uucp> arthur at ccwf.cc.utexas.edu (Arthur Nghiem) writes:
>	I want to write a script that will check the disk usage of a group
>of users periodically.

It exists. It's called /usr/bin/quot.

>                       I want to be able to warn them when they first exceed
>a limit, wait a few days and then automatically compress their files or
>remove the newest files that put them over the limit.

Try piping the ouput of quot into awk to pick out the violators.

 Jean-Pierre Radley   NYC Public Unix   jpr at jpradley.jpr.com   CIS: 72160,1341



More information about the Comp.unix.shell mailing list