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
Solved

Using Cron to schedule software updates on Mac 0Sx 10.7.5

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.

839 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