aboutsummaryrefslogblamecommitdiffstats
path: root/skylog/runskype_skylog.sh
blob: 90abaa18336fdcd55fd3228e16b99f9e01e5df77 (plain) (tree)



















                                                      






                                                          
                    
#!/bin/sh

LOGDIR=$HOME/skylog/

echo "[-] running skype"
skype &

echo "[-] waiting for skype to be up"
while :; do
	echo "\n" |ncat -v -w1 127.0.0.1 5253 && break
	sleep 1
done

echo "[-] running skylog"
skylog.py >> $LOGDIR/skylog.csv &
sleep 2

echo "[-] running skydbg"
skydbg.py >> $LOGDIR/skydbg.csv &

echo "[-] create tmux skylog watcher"
tmux new-session -d -s skylog "tail -f $LOGDIR/skydbg.csv"
tmux new-window -t skylog "tail -f $LOGDIR/skylog.csv"

echo "[-] attach to tmux skylog watcher"
tmux attach-session -t skylog

echo "[*] running !"