tmux
First use is to run weechat all the time.
What
Start tmux named sessions
tmux new -s weechat weechat
tmux new -s mocp mocp
Attach to named sessions
tmux attach-s -t weechat
tmux attach-s -t mocp
cronttab script to auto start tmux running weechat
executable file ~/bin/irc
#!/usr/bin/env sh
tmux has-session -t irc
case $? in
1) tmux -2 new-session -d -s irc weechat;;
esac
Some sample tmux commands and notes
tmux -2 new-session -d -s irc weechat
tmux ls
failed to connect to server: Connection refused
tmux has-session -t irc
0 if exists
1 if does not exist
run ~/bin/irc every 10 minutes
crontab -l
1,11,21,31,41,51 * * * * /home/craig/bin/irc >/dev/null &> /dev/null