Wake-up a network mac -- How to do that ?
Michel Angelo
michel_angelo at me.com
Mon Aug 9 10:55:45 EDT 2021
Hello to all of you. I am rather proud of having now successfully migrated xTension and its database from my MacBook Pro to a 21.5" iMac running in the basement macOS 10.13.6. This works to the exception of a back-up cloning operation that is performed using Carbon Copy Cloner ("CCC") on the MacBookPro.
In this, xTension's job is limited to powering up and down the external backup drives (3 1/2 inch hard drives).
Formerly, xTension would give to CCC the go ahead for cloning by way of a shell script contained in an xTension applescript.
set thePath to the quoted form of "/Applications/Carbon Copy Cloner.app/Contents/MacOS/ccc"
set theBackUp to the quoted form of "11ClonageD2DeMBP"
do shell script thePath & " -s" & theBackUp
Now, I do not know how to issue a shell script in another network mac, so I used mail, whereby :
xTension issues a mail containing the relevant information in the header the applescript part specifying the message's header being:
set theSubject to "GoBackUp, theSequence is " & theSequence & " and theDrive is " & thedrive
Which header triggers upon receipt in Mail a mail action issuing the above shell script:
if the subject contains GoBackUp and theSequence is Sat1 and theDrive is D2
Do shell script MailDo21ClonageD2S1DeMBP1.scpt
Which is
set thePath to the quoted form of "/Applications/Carbon Copy Cloner.app/Contents/MacOS/ccc"
set theBackUp to the quoted form of "21ClonageD2S1DeMBP1"
do shell script thePath & " -s" & theBackUp
The above works as long as the macBookPro is fully awake. But, in the middle of the night, whenever the macBookPro is not fully awake, it does not notice the issuance of the message, until the time the backup is long overdue and CCC issues a last chance instruction to the effect of powering down the backup drive. ns.
—
Michel Angelo
<michel_angelo at me.com>
More information about the XTensionList
mailing list