Wake-up a network mac -- How to do that ?

Tom Yarmas tom at yarmas.com
Wed Aug 11 08:36:37 EDT 2021


Michel,

If you set the wake on network access option (under energy saver control panel or Battery control panel on Mohave) you can use a wake on LAN command to wake up the Mac. I have not used it , but look at this https://www.cyberciti.biz/faq/apple-os-x-wake-on-lancommand-line-utility <https://www.cyberciti.biz/faq/apple-os-x-wake-on-lancommand-line-utility>

Also, it is pretty easy to use SSH to execute commands like shell scripts on a remote Mac.

-tom


> On Aug 11, 2021, at 8:09 AM, Michel Angelo <michel_angelo at me.com> wrote:
> 
> 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>
> 
> 
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20210811/23d5958a/attachment.html>


More information about the XTensionList mailing list