> 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.
I was surprised to learn that sudo will allow you to pipe the password to it (though you do have to use the -S switch). Surprisingly, however, this script quits *my* database daemon and not hers! I tried it several times, even when I "su <her username>" and run the osascript as her, it still quits my daemon and leaves hers running! Only if I physically switch over to her user account (i.e. fast user switch) does that command quit her daemon. Now I'm really perplexed... - B -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
