#!/bin/bash while true do if ps u | grep -v grep | grep irssi then echo moi else irssi fi sleep 600 done