From: Pulak Rakshit <pulakr () cableol ! net>
To: tru64-unix-managers
Subject: SUMMARY: DISK QUOTA on Files
Date: Tue, 16 Apr 1996 18:39:29 +0000 [thread overview]
Message-ID: <96076331021321.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1996-04-16 18:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox