From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076331021321.tru64-unix-managers.marc@archive.invalid> From: Pulak Rakshit Date: Tue, 16 Apr 1996 18:39:29 +0000 To: tru64-unix-managers Subject: SUMMARY: DISK QUOTA on Files X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076331021321 The following people responded with a number of suggestion: Knut.Hellebo@nho.hydro.com BRENNAN@HAL.HAHNEMANN.EDU CJS35102%US0A20.decnet@usav01.glaxo.com rwa@cs.athabascau.ca hagan@cih.com 1. In csh/tcsh you have the 'limit' command, in sh/ksh you have the 'ulimit' command. 2. Use AdvFS fetures. Create a file set for the file you want limited. Set the 'file-set' quota to the maximum size you want the file to reach. Move the file from the original partition or file set to this new file set. Create a soft (symbolic?) link from the original home of the file to the new file, or if the file is in a directory by itself, simply mount the file set at the proper location in your File system. 3. If you want to cut it back, you could have a job that runs every so often that does something like ... find /var/adm -name BIGLOGFILE -size +2000k \ -exec cat /dev/null > /var/adm/BIGLOGFILE \; Thanks Pulak