aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorltoetsch <>2001-03-08 15:25:38 +0000
committerltoetsch <>2001-03-08 15:25:38 +0000
commit998fe30dc57559b00b4cef121ee45a0afd5c8d93 (patch)
tree02aff59dab901063436b9f22074566765564ec84 /lcd4linux.c
parent30f18de3d08ec4fa032926a0121542cafa4bfb98 (diff)
downloadlcd4linux-998fe30dc57559b00b4cef121ee45a0afd5c8d93.tar.gz
[lcd4linux @ 2001-03-08 15:25:38 by ltoetsch]
improved exec
Diffstat (limited to '')
-rw-r--r--lcd4linux.c9
-rw-r--r--lcd4linux.conf.sample12
2 files changed, 18 insertions, 3 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index 3bc0144..c60a04e 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.29 2001/02/14 07:40:16 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.30 2001/03/08 15:25:38 ltoetsch Exp $
*
* LCD4Linux
*
@@ -20,6 +20,9 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.30 2001/03/08 15:25:38 ltoetsch
+ * improved exec
+ *
* Revision 1.29 2001/02/14 07:40:16 reinelt
*
* first (incomplete) GPO implementation
@@ -182,7 +185,7 @@ char *release="LCD4Linux " VERSION " (c) 2000 Michael Reinelt <reinelt@eunet.at>
char **my_argv;
char *output=NULL;
int got_signal=0;
-int debugging=1;
+int debugging=0;
int foreground=0;
int tick, tack;
@@ -343,7 +346,7 @@ int main (int argc, char *argv[])
}
if (foreground) {
- debug ("LCD4Linux " VERSION);
+ info ("Version " VERSION " starting");
} else {
info ("Version " VERSION " starting");
if (my_argv[0]==NULL || my_argv[0][0]!='/') {
diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample
index 50de336..db91281 100644
--- a/lcd4linux.conf.sample
+++ b/lcd4linux.conf.sample
@@ -62,6 +62,18 @@ Row2 "%p CPU %r MB RAM"
Row3 "Busy %cb%% $r10cs+cb"
Row4 "Load%l1%L$r10l1"
+# e(x)ecute command in %x*
+# Row5 %x1
+# Row6 %x2
+# x1 tail -1 /var/log/messages
+# x2 echo $X1 | cut -b25-
+# Note: PATH=/usr/local/bin:/usr/bin:/bin
+# Note: $X1 .. $X8 is the text of lines x1 .. x8
+#
+# Tick_x1 10 # every 10 ticks
+# Delay_x1 2 # every 2 seconds
+# Scale_x1 50 # scale for bars (default 100), value SHOULD be numeric ;-)
+
#Row1 "Load%l1%L$r10cs+cb"
#Row2 "Disk%dm $R10dr+dw"
#Row3 "Net %nm $R10nr+nw"