Re: Entourage: Kill that Daemon! (Shell)
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.