• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Conserver Processes (was Re: Kill that Daemon)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Conserver Processes (was Re: Kill that Daemon) (From: Chris Janton <email@hidden>)

  • Prev by Date: Re: Trailing LFs in shell scripts
  • Next by Date: Launch Default Mail App attached the file
  • Previous by thread: Conserver Processes (was Re: Kill that Daemon)
  • Next by thread: Excel scripting question
  • Index(es):
    • Date
    • Thread