Solved

Using Cron to schedule software updates on Mac 0Sx 10.7.5

Posted on 2013-01-22
3
700 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
Comment Utility
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
Comment Utility
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
Comment Utility
I found a solution on my own.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This video shows how use content aware, what it’s used for, and when to use it over other tools.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now