#!/usr/bin/env bash
case ${1} in
"open")
open /Applications/Yahoo\!\ Messenger.app/;
let "myentry = `ps -au lance | grep /Applications/Yahoo\!\ Messenger.app/ | grep -v grep | awk '{print $2}'`";
echo "press enter to kill ${myentry}";
read;
kill $myentry;
clear;
ps -au lance | grep /Applications/Yahoo\!\ Messenger.app/ | grep -v grep;
exit;;
"") ls $0;cat $0;exit;;
esac
Blog Archive
-
►
2011
(19)
-
►
June
(7)
- In list of numbers, find each pair that equals 100...
- Binary search in Perl, using CGI.pm and Ajax
- python: generate list of random alphnumeric string...
- View source of a malware website: http://bzowwjcr....
- Java: Write to File: Copy Bytes: Copy Music
- aLife cellular automata with sound output
- ascii to hex converter. useful for iwconfig key pa...
-
►
June
(7)
Wednesday, October 14, 2009
OS X CLI Open and Kill an App
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment