User:Yoana Buzova/ prototyping: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 33: Line 33:
    
    
</source>
</source>
[[File:Closed.png]]]]

Revision as of 01:48, 22 May 2013

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


Closed.png]]