Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using Cron to schedule software updates on Mac 0Sx 10.7.5

Posted on 2013-01-22
3
Medium Priority
?
725 Views
Last Modified: 2013-01-28
I am currently attempting to set up a group of 14 iMacs running 10.7.5 so that they do the following: Every weekday, turn on at 7 AM and turn off at 7 pm. (This I am able to do with the energy saver utility in system preferences). This is where it gets trickier. Ideally, I would like the iMacs to turn on at 3 AM on a saturday, and then run a simple script I've written that installs all available software updates, and then shuts down. However, neither energy saver or pmset (the unix command) allows multiple turn on and shut down points.

The partial solution I have is setting the iMacs to turn on at 7 AM every day, and have a cronjob to turn them off every weekday at 7 PM. Then, have  my original cronjob that runs my script at 8 AM every Saturday, and one final cronjob that cleans up the loose end of Sunday by turning off every Sunday at 8 AM. The problem is that the iMacs are on for an hour every Sunday, which seems unclean to me. Any suggestions?
0
Comment
Question by:CompassTech
  • 2
3 Comments
 
LVL 8

Expert Comment

by:s3e3
ID: 38805902
I like using the Apple Remote Desktop 3 for software updates and network remote control. I know there is a cost to it but it saves on headaches and lowers overall maintenance.
0
 

Accepted Solution

by:
CompassTech earned 0 total points
ID: 38810512
For anyone who wants to know, the solution I settled on was using pmset to turn on every day except Sunday at 7 am, and turn off every day except Sunday and Saturday at 7 PM. Then a cron job was set up to run my script every saturday at 8 am. (The script shut's down the computer when it is done). This isn't exactly what I was going for, but it works well.
0
 

Author Closing Comment

by:CompassTech
ID: 38826141
I found a solution on my own.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like me and like multiple layers of protection, read on!
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question