The conversation on this page has been archived and is no longer active.

Getting a script to run at shutdown

Message #1 - Posted 2005/05/31 - Nollaig MacKenzie

I want to have a script run when (i.e. just before :-)
my machine shuts down. That was easy in Slackware
Linux, but I haven't been able to figure out how to
do it in OSX. Can anyone give me a quick hint?

Be nice if cron had something complementary to '@reboot'.

Cheers, N.

Nollaig MacKenzie
http://www.amhuinnsuidhe.net

Message #2 - Posted 2005/05/31 - Hans Aberg

Previously, nollaig@amhuinnDELETEsuidheCAPS.net wrote:

I want to have a script run when (i.e. just before :-) my machine shuts down. That was easy in Slackware
Linux, but I haven't been able to figure out how to
do it in OSX. Can anyone give me a quick hint?

Be nice if cron had something complementary to '@reboot'.

Does what the system logs write at shutdown not give any hints?

Hans Aberg

Need Help? Have a Question?

Looking for more help, comments, and answers?

Ask your questions on Ask Different. Ask Different is a community of Apple users ready to help.