summaryrefslogtreecommitdiff
path: root/vdr.5
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-13 09:03:53 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-13 09:03:53 +0200
commite58fa67e6c53dc8ad061a2941b9984a0c1185a8f (patch)
tree1b0e139b036885c17195a78869d5ff6ccef80dfb /vdr.5
parentfadc2565d468afca10448600033b73af1ef74978 (diff)
downloadvdr-e58fa67e6c53dc8ad061a2941b9984a0c1185a8f.tar.gz
vdr-e58fa67e6c53dc8ad061a2941b9984a0c1185a8f.tar.bz2
Implemented '?' handling for commands.conf
Diffstat (limited to 'vdr.5')
-rw-r--r--vdr.518
1 files changed, 12 insertions, 6 deletions
diff --git a/vdr.5 b/vdr.5
index 8d6acfbc..b36422fa 100644
--- a/vdr.5
+++ b/vdr.5
@@ -8,7 +8,7 @@
.\" License as specified in the file COPYING that comes with the
.\" vdr distribution.
.\"
-.\" $Id: vdr.5 1.6 2002/10/06 08:56:01 kls Exp $
+.\" $Id: vdr.5 1.7 2002/10/13 09:03:53 kls Exp $
.\"
.TH vdr 5 "7 Sep 2002" "1.2.0" "Video Disk Recorder Files"
.SH NAME
@@ -322,7 +322,10 @@ Each line contains one command definition in the following format:
where \fBtitle\fR is the string that will be displayed in the "Commands" menu,
and \fBcommand\fR 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.
+white space characters. If \fBtitle\fR ends with the character '?', there will
+be a confirmation prompt before actually executing the command. This can be
+used for commands that might have serious results (like deleting files etc)
+to make sure they are not executed inadvertently.
By default the menu entries in the "Commands" menu will be numbered '1'...'9'
to make them selectable by pressing the corresponding number key. If you want
@@ -337,16 +340,19 @@ In order to avoid error messages to the console, every command should have
Examples:
-Check for new mail: /usr/local/bin/checkmail 2>&1
+Check for new mail?: /usr/local/bin/checkmail 2>&1
.br
-CPU status : /usr/local/bin/cpustatus 2>&1
+CPU status: /usr/local/bin/cpustatus 2>&1
.br
-Disk space : df -h | grep '/video' | awk '{ print 100 - $5 "% free"; }'
+Disk space: df -h | grep '/video' | awk '{ print 100 - $5 "% free"; }'
.br
-Calendar : date;echo;cal
+Calendar: date;echo;cal
Note that the commands 'checkmail' and 'cpustatus' are only \fBexamples\fR!
Don't send emails to the author asking where to find these ;-)
+.br
+The '?' at the end of the "Check for new mail?" entry will prompt the user
+whether this command shall really be executed.
.SS SVDRP HOSTS
The file \fIsvdrphosts.conf\fR contains the IP numbers of all hosts that are
allowed to access the SVDRP port.