Title: Re: [5] Quitting another user's daemon for backup?
On 1/12/06 9:39 AM, Bryan Harris deftly typed out:

>> My understanding is that a TERM signal will do the same as a "tell app X to
>> quit". You will need to find a way to run the kill or killall with superuser
>> (root) privileges to kill your wife's daemon, though.
>
> Do you have a source for this?  The only thing I've found is:
>
> http://www.macdevcenter.com/pub/a/mac/2003/09/19/remote_control.html
>
> ... which seems to indicate that "tell app to quit" is kindlier than "kill".

OK...it's true that it doesn't do the exact same thing as "tell app to quit" because the AppleScript route prompts to save open docs.

If your user on the machine is an administrator you can try:

echo 'yourpassword' | sudo -u herusername osascript -e 'tell application "Database Daemon" to quit'

This should cause the AppleScript command to be run in her user context and quit her Database Daemon.

-Remo Del Bello

--
"Even if a man chops off your hand with a sword, you still have two nice sharp bones to stick in his eyes."
- Kendo proverb

Reply via email to