This is a small shellscript I wrote, to ease starting irssi on my VPS:

#!/bin/sh
if screen -ls | grep -q IRC ; then
msn_pid=$(screen -ls | grep IRC | cut -f1 -d. | sed 's/\t//')
screen -r -d $msn_pid.IRC
else
screen -S IRC irssi
fi

If irssi is already running in screen, it resumes the session, otherwise it will start a new screen session. Of course, this could be used for lots of things, folding@home for example, but I primarily use it for irc’ing.

Related posts:

Tags: , , , , , , ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.