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:
- Using electricsheep as a psycedelic background image in Xubuntu
- Killing a defunct process
- Autoadjusting Linux VM Swappiness
- Improving randomness and entropy in ubuntu 9.10
- Startup script for transmission on OpenWrt.
Tags: bash, bitesized, debian, hack, irc, linux, shellscript, xubuntu




