summaryrefslogtreecommitdiff
path: root/FORMATS
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-11-11 16:38:41 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-11-11 16:38:41 +0100
commit54a2e99c7b86cafa5ad350171f021589ef2a80df (patch)
treed51d12d8ba6365648aabee1c9e70c00bac3d8b46 /FORMATS
parent9c499caf87d6d8f3758a8968d35c71d33927cc0e (diff)
downloadvdr-54a2e99c7b86cafa5ad350171f021589ef2a80df.tar.gz
vdr-54a2e99c7b86cafa5ad350171f021589ef2a80df.tar.bz2
Implemented 'Commands' menu
Diffstat (limited to 'FORMATS')
-rw-r--r--FORMATS24
1 files changed, 24 insertions, 0 deletions
diff --git a/FORMATS b/FORMATS
index a86cfd2c..3eee494f 100644
--- a/FORMATS
+++ b/FORMATS
@@ -66,3 +66,27 @@ Video Disk Recorder File Formats
See the MANUAL file for a description of the available options.
+* commands.conf
+
+ This file contains the definitions of commands that can be executed from
+ the "Main" menus "Commands" option.
+
+ Each line contains one command definition in the following format:
+
+ title : command
+
+ where 'title' is the string the will be displayed in the "Commands" menu,
+ and 'command' is the actual command string that will be executed when this
+ option is selected. The delimiting ':' may be surrounded by any number of
+ white space characters.
+
+ In order to avoid error messages to stderr, every command should have
+ stderr redirected to stdout. Everything the command prints to stdout will
+ be displayed in a result window, with 'title' as its title.
+
+ Examples:
+
+ Check for new mail: /usr/local/bin/checkmail 2>&1
+ CPU status : /usr/loval/bin/cpustatus 2>&1
+ Disk space : df -h | grep '/video' | awk '{ print 100 - $5 "% free"; }'
+