Re: Conserver Processes (was Re: Kill that Daemon)
Re: Conserver Processes (was Re: Kill that Daemon)
- Subject: Re: Conserver Processes (was Re: Kill that Daemon)
- From: Axel Luttgens <email@hidden>
- Date: Mon, 18 Nov 2002 09:26:24 +0100
Chris Janton wrote:
set msdbdPID to do shell script ,
("/bin/ps -auwwx | grep -v /usr/bin/awk | /usr/bin/awk '/Microsoft
Database Daemon/ {print $2;}'")
Save a process (like save a tree?)
"/bin/ps -auwwx | /usr/bin/awk '/[M]icrosoft Database Daemon/ {print
$2;}'"
The regular expression pattern finds Microsoft, but doesn't match
itself due to the meta characters.
Right: now that the initial request has been solved, one may go one step
further and really begin to think about trees and other valuable
resoures. ;-)
And your trick is really nice; never thought of it.
I'll remember it each time I'm quickly testing for the presence of a
process. Eg:
ps -aux | grep '[l]ookupd'
Great!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.