Restart Classic

Here is a shell script you can use to shutdown and restart classic. I created this to run as a cron script, so that I could shut down classic at an interval. It seemed like Classic was having memory problems if it ran too long without a reboot, so I set it up to run at night.

TruBlueState=$(ps -auxwww | grep TruBlueEnvironment | grep -v grep | awk ‘{print $2}’)
echo $TruBlueState;

kill -9 $TruBlueState

open ‘/System/Library/CoreServices/Classic Startup.app’

3 Responses to “Restart Classic”

  1. toby mackenzie Says:

    instead of:
    TruBlueState=$(ps -auxwww | grep TruBlueEnvironment | grep -v grep | awk ‘{print $2}’)
    echo $TruBlueState;

    kill -9 $TruBlueState

    you can just put:
    killall -9 TruBlueEnvironment

    killall is like kill but uses process name instead of id

  2. Joe T. Says:

    I was wondering if anyone could give me some advice at how I could get classic to quit by writing an applescript in Panther? I use a lot of classic apps with my kindergarten and first grade students. Periodically it acts up when I am not in the lab to assist them if they are using our computer lab with their classroom teachers. I would like to provide an app to their docks which would kill classic for them and allow it to restart during a normal classic app startup.

    Thank you for any help anyone would be willing to provide.

    Joe T.

  3. bradrice Says:

    See post 67. I re-wrote this post and tried to explain it a little better. Should work in panther as well as Tiger.