User:Yoana Buzova/ prototyping

From XPUB & Lens-Based wiki

MY browser / mmths + yoana




#!/bin/bash


while true; do

	if pgrep Safari || pgrep firefox || pgrep Chrome  &>/dev/null; then
		echo alive
		sleep 4
		pkill Safari 
		pkill firefox
		pkill Chrome
		/usr/bin/osascript <<-EOF

    tell application "System Events"
        activate
        display dialog "We are closed!"buttons{"Sorry"}
    end tell

EOF
	else 
		echo DEAD!!!
	fi
done