MacOS – caffeinate under lion 10.7.4

macossleep-waketerminal

today i'm trying to use the typical 'caffeinate -t 1000' on terminal and get this output:

Gabrieles-MacBook:~ black$ caffeinate -t 1000

-bash: caffeinate: command not found

So i read the man page and i saw the path was /usr/bin/ and no binary of caffeinate there.
What can i do? I tried caffeine and owly from the appstore with no results. I don't understand.
I used it every day when i had mountain lion or el captain. Now i did a downgrade on macbook because el cap is too slow and now i have lion 10.7.4

Thanks, Gabriele.

Best Answer

"To use the caffeinate command you’ll need to be running a fairly modern version of OS X, as the feature was introduced in 10.8 Mountain Lion and persists through 10.9 Mavericks, and into 10.10 Yosemite. Heads up to MacWorld for the tip." Source: http://osxdaily.com/2012/08/03/disable-sleep-mac-caffeinate-command/

Alternative to caffeinate: http://lifehacker.com/5767991/how-to-force-your-mac-to-stay-awake-indefinitely-via-the-command-line Thus work for me!

Related Question