View Single Post
  #6  
Old 11-22-2010, 12:48 PM
quattlebaum quattlebaum is offline
Registered User
 
Join Date: Sep 2008
Posts: 8
No Restart... so I'm Baaack...

So I created the file "restart.sh" with the following contents and put it inside my SD folder:

#!/bin/sh
nohup /bin/bash -c "sleep 20; osascript /Applications/Apps QB/SuperDuper!/restart.scpt" &

-------
I used chmod as described here to modify "restart.sh":
chmod +x (and drag from finder the script 'remove_cache.sh')

---------
as a reminder "restart.scpt" has the following (and if I "run" this script the computer does restart):


tell application "Finder"
restart
end tell

-------
SD does execute "restart.sh" without any error my MacPro does not restart. Seems to cause the cpus to get utilized for a minute but nothing else.

Does anything need to be "complied"? Sorry for my programming innocence (ignorance!)

qb
Reply With Quote