Solved

Using Cron to schedule software updates on Mac 0Sx 10.7.5

Posted on 2013-01-22
3
703 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft  Partnership 1 68
How can i Test IOS App (IPA) without those devices ? 3 62
Check version 13 69
mac maintenance 6 34
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Viewers will learn how to use the Hootsuite Dashboard.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

911 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

21 Experts available now in Live!

Get 1:1 Help Now