Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: VDR commands.conf
Hello.
On Mon, Aug 20, 2001 at 11:04:57AM +0200, Sergei Haller wrote:
>
> Im going to add some useful commands into my commands.conf file.
> below are the entries I think to add.
> does anybody have some additional suggestions?
No, but I have already more or less implemented one of your ideas.
> 5. du -s /var/videos/*
> df /var/videos
> (one could set a variable $VIDEO_DIR in runvdr and use it instead.)
> this I'm going to use for looking for file sizes of different
> recordings.
> this may break in the future since Klaus is implementing a new
> hierarchical directory structure for storing the recordings.
Mine has an output like this:
Size Used Avail Use%
55G 43G 12G 78%
0 MB (0h 0m) Deleted
42802 MB (25h 56m) Used
The time is obviously just a rough estimate.
Disk space: df -h /video | egrep '(/video|Filesystem)' | awk '{ print $2 "\t" $3 "\t" $4 "\t" $5; }' ; cd /video ; echo ; du -scm */*.del | grep total | awk '{ stunden = int($1/1650); minuten = $1/27.5 - stunden*60; printf "%i MB (%ih %im) Deleted\n\n", $1, stunden, minuten }' ; du -scm */*.rec | grep total | awk '{ stunden = int($1/1650); minuten = $1/27.5 - stunden*60; printf "%i MB (%ih %im) Used\n\n", $1, stunden, minuten }'
(Don't forget to exchange all '/video's by your video directory.)
> @Klaus: is it possible to write the recording size behind its name in
> the recordins menu?
> and maybe the free disk space available at the moment (under the
> recordings list?), i. e.
>
> 18.08. 19:30 VOX (30MB)
> 18.08. 22:30 SAT 1 (1.400MB)
> total free space on the video disks available: 23.537 MB
I have a script with the following output that should do about the same
thing, although it does not display the time, as I wanted enough space for
the title:
3700 Johanna_von_Orleans/01-07-22.50.50
3650 RaR/01-06-04.99.99
3306 Eyes_Wide_Shut/01-07-15.10:55
2556 REM-Konzert/01-05-12.99.99
2288 Star_Trek._Raumschiff_Voyager/01-07-03.50.50
2202 Star_Trekb_Raumschiff_Voyager/01-08-14.50.50
1967 Star_Trek_-_Raumschiff_Voyager/01-08-03.50.50
1965 Zimmer_frei!/01-07-01.50.50
1684 Sport_im_Westen/01-08-12.50.50
1235 Star_Trek._Raumschiff_Voyager/01-07-24.50.50
1217 %Star_Trek_-_Raumschiff_Voyager/01-06-15.99.99
1102 Star_Trek._Raumschiff_Voyager/01-07-18.50.50
664 %Friends/01-08-11.50.50
655 %Friends/01-06-02.99.99
654 %Friends/01-08-18.50.50
640 %Friends/01-07-14.50.50
637 %Friends/01-06-23.50.50
Recordings: cd /video/ ; du -m */*| sort -nr | sed -e 's/\.\///' -e 's/\...\...\././' -e 's/\/../\//' -e's/ \([^\/]\{0,20\}\)[^\/]*\/\(..\)-\(..\)-\(..\)/ \1\/\2\3\4/g' -e 's/\.rec$//' -e 's/\.del$/~/'
It appends a ~ to the name if the recording is deleted.
cu,
Lars
--
Those of you who think you know everything are annoying those of us
who do.
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index