Solved

Using Cron to schedule software updates on Mac 0Sx 10.7.5

Posted on 2013-01-22
3
718 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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