{"id":1166,"date":"2016-10-11T20:20:46","date_gmt":"2016-10-12T03:20:46","guid":{"rendered":"http:\/\/emresaglam.com\/blog\/?p=1166"},"modified":"2016-10-11T20:20:46","modified_gmt":"2016-10-12T03:20:46","slug":"no-timer-in-mac-os-x-no-problem","status":"publish","type":"post","link":"https:\/\/emresaglam.com\/blog\/blog\/2016\/10\/11\/no-timer-in-mac-os-x-no-problem\/","title":{"rendered":"No timer in Mac OS X? No problem!"},"content":{"rendered":"<p>Mac OS X doesn&#8217;t come with a timer installed by default. There are bunch of timers in the App Store, you can definitely install one of those.<\/p>\n<p>But here is how to make one from scratch.\u00a0Open terminal screen and type:<\/p>\n<p><code>sleep 5 ; say \"Time is up\"<\/code><\/p>\n<p>Well that&#8217;s it \ud83d\ude42 This command will sleep for 5 seconds and say &#8220;Time is up&#8221; at the end of 5 seconds.<\/p>\n<p>We can make a little script out of it\u00a0and save as\u00a0\/usr\/local\/bin\/timer as\u00a0below:<\/p>\n<p><code>#!\/bin\/bash<br \/>\nsleep $1 ; say \"Time is up\"<\/code><\/p>\n<p>You can invoke the command like this, it\u00a0will sleep 5 seconds and tell you &#8220;Time is up&#8221;:<\/p>\n<p><code>timer 5<\/code><\/p>\n<p>As a bonus, if you want minutes instead of seconds, you can always do something like this which will run the timer for 5 minutes:<\/p>\n<p><code>timer `echo \"5*60\" | bc`<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac OS X doesn&#8217;t come with a timer installed by default. There are bunch of timers in the App Store, you can definitely install one of those. But here is how to make one from scratch.\u00a0Open terminal screen and type: sleep 5 ; say &#8220;Time is up&#8221; Well that&#8217;s it \ud83d\ude42 This command will sleep &hellip; <a href=\"https:\/\/emresaglam.com\/blog\/blog\/2016\/10\/11\/no-timer-in-mac-os-x-no-problem\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">No timer in Mac OS X? No problem!<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[70,42,68,69,9],"_links":{"self":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1166"}],"collection":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/comments?post=1166"}],"version-history":[{"count":1,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1166\/revisions"}],"predecessor-version":[{"id":1167,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1166\/revisions\/1167"}],"wp:attachment":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/media?parent=1166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/categories?post=1166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/tags?post=1166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}