...or one can just use logrotate (rather than run an extra cron job). It's surprisingly good at that sort of thing ;)
Tina On 29/01/2019 16:21, Reuti wrote: > Hi, > >> Am 29.01.2019 um 17:09 schrieb John Young <j.e.yo...@larc.nasa.gov>: >> >> The gridengine accounting file on our cluster has gotten >> rather large. I have looked around in the Gridengine docs >> for information on how to close it and start another file >> but if it is there, I missed it. >> >> Does anyone know how to do this? > > Just rename it, SGE should start a new one. > > There is even a script in $SGE_ROOT/util/logchecker.sh to be run as a > cron-job, which renames and compresses the file(s) keeping certain versions > as backup. > > The compressed ones can later be used by e.g.: > > $ qacct -f <(zcat accounting.0.gz) > > -- Reuti > > > >> -- >> JY >> -- >> "All ideas and opinions expressed in this communication are >> those of the author alone and do not necessarily reflect the >> ideas and opinions of anyone else." >> >> -- >> JY >> ------------------------------------------------------------ >> John E. Young NASA LaRC B1148/R226 >> Analytical Mechanics Associates, Inc. (757) 864-8659 >> _______________________________________________ >> users mailing list >> users@gridengine.org >> https://gridengine.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users@gridengine.org > https://gridengine.org/mailman/listinfo/users > _______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users