#!/bin/bash #Check for the presence of an irssi session, and reload it if not found... #search for irssi, taking care not to mistake this script for it... VAR="`ps -u north|grep irssi|grep -v irssi-auto`" if [ "$VAR" = "" ]; then /usr/bin/screen -d -m -t "IRC Session (RELOADED)" /usr/bin/irssi fi