Murphy Mac - Screencasts and Tutorials » Page 'Terminal Sleep Command'

Terminal Sleep Command

Share

You want to schedule something really quickly, and you don’t have time to set up cron or other scheduling tools. In some cases, using the sleep command in Terminal might be all you need.

Here’s an example. My Mac was busy doing something, and I didn’t want Dropbox working on a big sync until it was done. So I quit Dropbox and entered this in Terminal:

sleep 3600; open -a Dropbox

The sleep command had my Mac wait for 60 minutes before launching Dropbox. The other job had finished and Dropbox launched and went to work. More on using Terminal to launch applications.

Of course there are other ways to schedule tasks. But could you implement them faster for this particular scenario?

Related:
scheduling a twitter tweet
running an applescript with iCal
terminal as application launcher

Comments | Permalink

4 comments to “Terminal Sleep Command”

  1. Hello! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche.
    Your blog provided us valuable information to work on. You have done a extraordinary job!

  2. It’s actually a nice and helpful piece of information. I’m glad that you just shared this
    helpful info with us. Please stay us up to date like this.
    Thank you for sharing.

  3. After looking into a number of the blog posts on your site,
    I seriously like your way of blogging. I added
    it to my bookmark website list and will be checking back soon. Please check out
    my web site as well and let me know how you feel.

  4. If you want actual suerce data storage, the only way to do it is to ensure that data was never on a networked computer in the first place.Encryption is only a marginal deterrent and not an absolute safeguard.If you are looking for a full suite of on-line services though, is where it’s at. :)

Leave a comment