summaryrefslogtreecommitdiff
path: root/rconsole/rconsole-output
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-26 19:36:21 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-26 19:40:50 +0000
commit4fbda5a9af95345504636d178e26b248791a2262 (patch)
treeaa20acbf33686b6843273b175e487ff397abee12 /rconsole/rconsole-output
parent26d2028b4773aed05707faa7f525075b07da899c (diff)
Initial commit.
No history was lost as the scripts had no history in the first place.
Diffstat (limited to 'rconsole/rconsole-output')
-rwxr-xr-xrconsole/rconsole-output12
1 files changed, 12 insertions, 0 deletions
diff --git a/rconsole/rconsole-output b/rconsole/rconsole-output
new file mode 100755
index 0000000..a6eba89
--- /dev/null
+++ b/rconsole/rconsole-output
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+trap 'screen -S "$RCONSOLE_SCREEN" -X quit; exit' SIGINT
+
+IDENTIFIER="tremded@$RCONSOLE_INSTANCE"
+
+journalctl --user -f -o cat SYSLOG_IDENTIFIER="$IDENTIFIER" \
+|| (
+ echo "journalctl didn't work"
+ read
+ exit
+)