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’
May 12th, 2005 at 12:01 am
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
January 22nd, 2006 at 3:15 pm
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.
January 23rd, 2006 at 11:19 am
See post 67. I re-wrote this post and tried to explain it a little better. Should work in panther as well as Tiger.