Commit c722a9cf authored by Jameson Rollins's avatar Jameson Rollins

guardlog usage, ignore -x, and fix exec in MEDM screens

parent 55cfb2ae
#!/bin/bash -x
#!/bin/bash
if [[ "$1" == '-h' || "$1" == '--help' ]] ; then
cat <<EOF
usage: guardlog [node [node ...]]
Follow guardian logs in special X window.
If no node is specified all node logs will be followed.
EOF
exit
fi
if [[ "$1" == '-x' ]] ; then
shift
fi
exec xterm \
-hold \
-si -sk +sb \
-geometry 150x80 \
-bg DodgerBlue4 \
......@@ -8,5 +20,5 @@ exec xterm \
-fa Monospace \
-fs 10 \
-title "guardctrl: $*" \
-e "python3 -u -m guardctrl log -f $*" \
-e "python3 -u -m guardctrl log -n 1000 -f $*" \
&
......@@ -314,7 +314,7 @@ polyline {
command[0] {
label="log"
name="guardlog"
args="-x $(SYSTEM)"
args="$(SYSTEM)"
}
command[1] {
label="graph"
......
......@@ -315,7 +315,7 @@ polyline {
command[0] {
label="log"
name="guardlog"
args="-x $(SYSTEM)"
args="$(SYSTEM)"
}
clr=0
bclr=12
......
......@@ -113,7 +113,7 @@ display {
command[0] {
label="log"
name="guardlog"
args="-x $(SYSTEM)"
args="$(SYSTEM)"
}
clr=0
bclr=12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment