#!/bin/sh ps aux | grep '[s]kype' if [ $? -eq 1 ] ; then [ -e `which skype` ] && skype fi