Sometimes, you need to add a few w's to the command to parse it properly: ps auxwww | grep foo Eric On Mar 27, 2009, at 1:58 AM, Christoph Hammann wrote: > Hi, > > The first command you're looking for is ps aux | grep processname . > The second is apropos . > > HTH! > > -- > I hate to be the one who brings this news to the tribe, but the > Internet does one thing. It speeds up the retrieval and > dissemination of information, and only that. All the rest is > Digibabble. > Tom Wolfe > > Am 27.03.2009 um 06:42 schrieb Jerry Krinock <jerry at ieee.org>: > >> Does anyone know if there is a command to find if a certain app is >> running? >> >> I know one way to do this would be via osascript/AppleScript, >> >> tell application "System Events" set allApps to every application >> process >> >> and then parse the list returned but I'd like to avoid the >> backslash-escape hell of osascript if possible. >> >> Is there a command-line interface to System Events? >> >> Thanks, >> >> Jerry Krinock >> >> P.S. More generally, is there a way to search for "a command that >> will do XYZ" on OS X? Example: Earlier today, I wanted to read/ >> write user preferences but had difficulty remembering the command >> name 'defaults'. >> >> >> _______________________________________________ >> X-Unix mailing list >> X-Unix at listserver.themacintoshguy.com >> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > _______________________________________________ > X-Unix mailing list > X-Unix at listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > --- Eric Crist