User:Yoana Buzova/ prototyping: Difference between revisions
Yoana Buzova (talk | contribs) No edit summary |
Yoana Buzova (talk | contribs) 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