crontab -e */5 * * * * /home/jenda/guard.sh guard.sh if ! ps x|grep -q [S]CREEN; then /usr/bin/screen -d -m irssi fi chmod +x guard.sh