Commands.conf

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Beispiele)
(Beispiele)
Zeile 11: Zeile 11:
 
Check for new mail? : /usr/local/bin/checkmail 2>&1  
 
Check for new mail? : /usr/local/bin/checkmail 2>&1  
 
CPU status          : /usr/local/bin/cpustatus 2>&1  
 
CPU status          : /usr/local/bin/cpustatus 2>&1  
Disk space          : df -h | grep '/video' | awk '{ print 100 - $5 "% free"; }'  
+
Disk space          : df -h | awk '/[/]video/ { print 100 - $5 "% free"; }'
Drivespace          : df -h|awk '/%/ { printf("%4.4s : %5.5s : %s\n",$5,$4,$6) }'
+
Drivespace          : df -Ph | awk '/%/ { printf("| %-4s | %-5s | %s\n",$5,$4,$6) }'
 
Calendar            : date;echo;cal
 
Calendar            : date;echo;cal
 
</pre>
 
</pre>
Zeile 21: Zeile 21:
 
{{Box Datei| $VDRCONFIG/commands.conf |
 
{{Box Datei| $VDRCONFIG/commands.conf |
 
<pre>
 
<pre>
News ML            : lynx -dump http://www.netholic.com/modules.php?name=VDR_Announce | sed '/[0-9]\/[0-9]/!d;s/\(\([^]]*\)\[\)\{1\}.*/\2/;s/  //g'
+
News ML            : lynx -dump http://www.netholic.com/extras/vdr_announce.php | sed '/[0-9]\/[0-9]/!d;s/\(\([^]]*\)\[\)\{1\}.*/\2/;s/  //g'
 
</pre>
 
</pre>
 
}}
 
}}
 
[[Kategorie:Konfigurationsdateien]]
 
[[Kategorie:Konfigurationsdateien]]

Version vom 3. März 2006, 09:36 Uhr

Beschreibung

In der commands.conf können Befehle angelegt werden, die über das Menü im OSD des VDR erreicht und gestartet werden können.

Diese Datei befindet sich Standard in /video, oder mit der entsprechenden Option in /etc/vdr, siehe Struktur.

Beispiele

Aus man vdr.5

Datei
$VDRCONFIG/commands.conf
Check for new mail? : /usr/local/bin/checkmail 2>&1 
CPU status          : /usr/local/bin/cpustatus 2>&1 
Disk space          : df -h | awk '/[/]video/ { print 100 - $5 "% free"; }'
Drivespace          : df -Ph | awk '/%/ { printf("| %-4s | %-5s | %s\n",$5,$4,$6) }'
Calendar            : date;echo;cal


Sonstige

Datei
$VDRCONFIG/commands.conf
News ML             : lynx -dump http://www.netholic.com/extras/vdr_announce.php | sed '/[0-9]\/[0-9]/!d;s/\(\([^]]*\)\[\)\{1\}.*/\2/;s/  //g'