Bash
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 [...]
Continue reading about A little tip if you’re using IRSSI and screen
I was reading a blog post about adjusting the level of swapping done by the linux kernel, and I wrote a simple shell script to adjust this level, based on the load of the machine.





Recent comments