• 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: Entourage: Kill that Daemon! (Shell)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entourage: Kill that Daemon! (Shell)


  • Subject: Re: Entourage: Kill that Daemon! (Shell)
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 16 Nov 2002 10:16:59 +0100

Gnarlodious wrote:

>[snip]
>
>>set msdbdPID to do shell script "/bin/ps -auwx | grep -v /usr/bin/awk |
>>/usr/bin/awk '/Microsoft Database Daemon/ {print $2;}'"
>>
>>
>This line is returning a null string, which was my original problem. I am
>running 10.2.2 if it matters. Hope the email format is not mangling the
>line!
>
>
OK, my fault... I checked your original shell command with the name of
some running process on my machine (where the MS daemon usually isn't
running), just to be sure it worked as intended.
But I overlooked a point; try "ps -auxw" from the terminal when the
daemon is running and have a look at the output: since the name
"Microsoft Database Daemon" is very long, it gets truncated and thus
can't be found through your filtering command.
So, either you add one or more "w" on the "-auwx" part (so as to allow
larger names to be fully output), or you shorten the "/Microsoft
Database Daemon/" part (so as to accodomodate with the truncation).

We'll get it !
Axel
_______________________________________________
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.

  • Follow-Ups:
    • Re: Entourage: Kill that Daemon! (Shell)
      • From: Gnarlodious <email@hidden>
  • Prev by Date: "do shell script" problem solved
  • Next by Date: Re: handler failure [oops! correction]
  • Previous by thread: Re: Entourage: Kill that Daemon! (Shell)
  • Next by thread: Re: Entourage: Kill that Daemon! (Shell)
  • Index(es):
    • Date
    • Thread