jimb@faatcrl.UUCP (Jim Burwell) (11/15/89)
Hi there, Does anyone know of a shell script/program which does periodic disk space tracking, on a directory level ? i.e., if a directory grows by a certain ammount, the script tells me something like 'alert: directory /usr/diskhog has grown from 20Megs to 50 megs!'. I have "watcher", but I havn't set it up. It looks like this might be able to do it with the proper watcher file. Also, does anyone know how to do file locking from a shell script ?? I'd like to do stuff like generate a new paths file (for Smail), move the on-line paths into a "filename.old" file, and move the new file into place. In general, I need a way to have an exclusive write lock on a file so any other processes that use the file wont get screwed up.. Is there a way to do this ? Bye Jim -- +------------------------------------------------+--------------------------+ | James S. Burwell | | | | "UseNet...A text network | | UUCP: | in a binary world" - Me | | ...!{ames!netsys|rutgers}!faatcrl | | | !jimb | "How do you say | | . | 'multitasking' in | | Internet: . | MS-DOSish? Network | | // jimb@faatcrl.UUCP . ** | File Server!" - Me | | // . **** | | | \\ // GEnie: Airwarior: . .** | <reserved for future> | | \X/ JIMBURWELL Techrat . | <expansion.... > | +------------------------------------------------+--------------------------+