Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Quit Mail.app remotely in a nice manner' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Quit Mail.app remotely in a nice manner
Authored by: billabOng on Jun 15, '04 02:30:52PM

I ssh in and use 'kill -15 <pid>'. Seems to work fine so far.



[ Reply to This | # ]
any tech reason not to kill or killall?
Authored by: alanb1979 on Jun 15, '04 05:31:55PM

I used to do this too, but somehow it bothered me ... does anyone know some technical reasons that would make the AppleScript version more desireable?

---
hiedy hoo



[ Reply to This | # ]
any tech reason not to kill or killall?
Authored by: billabOng on Jun 15, '04 06:12:18PM

From the kill manpage (on my NetBSD box.. OSX doesn't seem to have it):

15 TERM (software termination signal)

AFAIK, this means.. Quit gracefully.

No need to use killall to kill 1 process.



[ Reply to This | # ]
any tech reason not to kill or killall?
Authored by: BananaFish on Jun 16, '04 04:16:06AM

I think the advantage of using killall instead of kill is that you can kill a process by name and not by PID. So, instead of having to figure out what PID Mail is using, you can simply run killall Mail.

One disadvantage to using killall might be that, if you have more than one user logged in through Fast User Switching, you could run the risk of killing off more than one instance of Mail. The killall man page states: "By default, it will send a TERM signal to all processes with a real UID identical to the caller of killall that match the name procname. The super-user is allowed to kill any process." In other words, as long as you're shelled in as yourself and you just run killall as yourself and not as root, you should be fine. I tried it out on my own system and it worked as the man page describes.

My OS X installation has a man page for kill, by the way.

---
I'm interesting
You think I'm interesting
Like the apocalypse

[ Reply to This | # ]

Quit Mail.app remotely in a nice manner
Authored by: phripley on Jun 15, '04 06:45:29PM

The poster's method has the advantage of allowing unsaved work be be saved. Or am I missing something?



[ Reply to This | # ]