From 9135ec02b8eff4cf4c0d6dbcb54346b3f508a6f1 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Wed, 19 Aug 2015 20:47:05 -0500 Subject: save point. --- scripts/subseg.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 scripts/subseg.sh (limited to 'scripts/subseg.sh') diff --git a/scripts/subseg.sh b/scripts/subseg.sh new file mode 100755 index 0000000..27ba0e1 --- /dev/null +++ b/scripts/subseg.sh @@ -0,0 +1,35 @@ +#!/bin/sh +if [ "_$1" == "_" ];then + echo '!say usage: !subseg server port' + echo '!say No SSL support yet. open an ssl tunnel yourself. :P' + exit 1 +else + export segserver=$1 +fi +if [ "_$2" == "_" ];then + export segport=6667 +else + export segport=$2 +fi +if [ "_$3" == "_" ];then + export 'segchan=#default' +else + export "segchan=$3" +fi +export seghome=/home/segfault/subseg/$$ +mkdir -p $seghome +mkdir $seghome/scripts +echo '!rawrecord 1' >> $seghome/scripts/prestartup +echo '!nick subseg' >> $seghome/scripts/prestartup +echo '!raw user ss ss ss :ss' >> $seghome/scripts/prestartup + +echo '!raw join '"$segchan" >> $seghome/scripts/startup +echo '!leettail 02'"$segchan"':'$seghome/files/eval_in >> $seghome/scripts/startup +mkdir -p $seghome/files +touch $seghome/files/eval_in +touch $seghome/files/rawlog +echo '!say check it. tailing in 5 seconds...'$$ +segfault 2>&1 >/dev/null & +sleep 5 +echo '!leettail 08#cmd:'$seghome/files/rawlog +echo '!alias !tellsub'$$' !leetappend '$seghome'/files/eval_in 10 %s' -- cgit v1.2.3