#!/bin/bash if pgrep -x "a.sh" > /dev/null 2>&1 then echo "a.sh zaten calisiyor" else echo "a.sh durmus calistiriliyor" /root/a.sh (programın baslatma komutu) fi exit 0