diff options
Diffstat (limited to 'scripts/subseg.sh')
-rwxr-xr-x | scripts/subseg.sh | 35 |
1 files changed, 35 insertions, 0 deletions
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' |