Re: /etc/daily : flexible df output

2019-10-28 Thread Raf Czlonka
On Mon, Oct 28, 2019 at 09:25:22PM GMT, Raf Czlonka wrote: > On Mon, Oct 28, 2019 at 01:32:05PM GMT, Andre Stoebe wrote: > > > > - df -ikl > > + df ${DFARGS-"-ikl"} > > > > Hi Andre, > > Instead of ${DFARGS-"-ikl"}, you should most likely be using: > > ${DFARGS:-"-ikl"} > > Cheers,

Re: /etc/daily : flexible df output

2019-10-28 Thread Raf Czlonka
On Mon, Oct 28, 2019 at 01:32:05PM GMT, Andre Stoebe wrote: > > - df -ikl > + df ${DFARGS-"-ikl"} > Hi Andre, Instead of ${DFARGS-"-ikl"}, you should most likely be using: ${DFARGS:-"-ikl"} Cheers, Raf

Re: /etc/daily : flexible df output

2019-10-28 Thread Stuart Henderson
On 2019/10/28 10:39, Theo de Raadt wrote: > I also think this is getting out of hand. > > This script is supposed to be a simplistic subsystem providing the > minimum. Intentionally.. Adding this option today, another option > tomorrow, eventually this turns into a ${} scribble-fest. And somewh

Re: /etc/daily : flexible df output

2019-10-28 Thread Theo de Raadt
I also think this is getting out of hand. This script is supposed to be a simplistic subsystem providing the minimum. Intentionally.. Adding this option today, another option tomorrow, eventually this turns into a ${} scribble-fest. And somewhere around the time the script doubles in size, bugs

Re: /etc/daily : flexible df output

2019-10-28 Thread Ingo Schwarze
Hi Nick, Nick Holland wrote on Sun, Oct 27, 2019 at 02:27:46PM -0400: > In version 1.78 of /etc/daily, the -i flag was added to the df output. > Apparently, some people run out of inodes. > > I only seem to run out of disk space, and too often, my eye skims > the daily report from a machine, loo

Re: /etc/daily : flexible df output

2019-10-28 Thread Andre Stoebe
Hello Nick, > Those of us that don't worry about running out of inodes, we can > set DF_FLAGS in /etc/daily.local to be whatever we want, in my > case, I like "-hl" (currently, it's "-ikl") I really like the idea, because getting human-readable numbers in the report without replicating functional

/etc/daily : flexible df output

2019-10-27 Thread Nick Holland
In version 1.78 of /etc/daily, the -i flag was added to the df output. Apparently, some people run out of inodes. I only seem to run out of disk space, and too often, my eye skims the daily report from a machine, looks at the last column,sees a small percentage, and I decide, "all is good", even i