Skip to content

Commit

Permalink
Wrapper around znc and irssi
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Marier committed Nov 24, 2014
1 parent 9ee13b0 commit d2918d6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions irc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
#
# Start my znc-based IRC bouncer before running irssi and prompt to
# kill it afterwards.

znc-on
irssi
read -p "Terminate the bouncer? [y/N] " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
znc-off
fi
2 changes: 2 additions & 0 deletions znc-off
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
ssh irc.fmarier.org killall -sSIGINT znc
2 changes: 2 additions & 0 deletions znc-on
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
ssh irc.fmarier.org "pgrep znc || znc"

0 comments on commit d2918d6

Please sign in to comment.