Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Status



Klaus Schmidinger wrote:
>Matthias Queisler wrote:
>> Just a little feature that I am missing. What about a menu that displays
>> the space left on the disk?
>
>I assume you are referring to VDR?
>
>You can put the following line into 'commands.conf' to get that:
>
>Disk space: df -h | grep '/video' | awk '{ print 100 - $5 "% free"; }'

Another idea is to display it in minutes, with the following quite long 
commandline (it assumes 30000kB/minute)

echo "There are";expr 
$(df /video|grep dev|awk '{printf "%d",$4/30000,stdout;}') 
+ 
$(df /video1|grep dev|awk '{printf "%d",$4/30000,stdout;}');
+
...add more (different) mount-points here
echo "minutes free.";

With only one directory it's just:

echo "There are";expr $(df /video|grep dev|awk '{printf 
"%d",$4/30000,stdout;}');echo "minutes free.";


--- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index