CAFFEINATE(8) BSD System Manager's Manual CAFFEINATE(8)NAME
caffeinate -- prevent the system from sleeping on behalf of a utility
caffeinate [-disu] [-t timeout] [utility] [argument ...]
caffeinate creates assertions to alter system sleep behavior. If no assertion flags are specified, caffeinate creates an assertion to pre-
vent idle sleep. If a utility is specified, caffeinate creates the assertions on the utility's behalf, and those assertions will persist for
the duration of the utility's execution. Otherwise, caffeinate creates the assertions directly, and those assertions will persist until
-d Create an assertion to prevent the display from sleeping.
-i Create an assertion to prevent the system from idle sleeping.
-m Create an assertion to prevent the disk from idle sleeping.
-s Create an assertion to prevent the system from sleeping. This assertion is valid only when system is running on AC power.
-u Create an assertion to declare that user is active. If the display is off, this option turns the display on and prevents the display
from going into idle sleep. If a timeout is not specified with '-t' option, then this assertion is taken with a default of 5 second
-t Specifies the timeout value in seconds for which this assertion has to be valid. The assertion is dropped after the specified time-
out. Timeout value is not used when an utility is invoked with this command.
caffeinate -i make
caffeinate forks a process, execs "make" in it, and holds an assertion that prevents idle sleep as long as that process is running.
SEE ALSO pmset(1)LOCATION
Darwin November 9, 2012 Darwin
Check Out this Related Man Page
Test::Unit::Assertion(3pm) User Contributed Perl Documentation Test::Unit::Assertion(3pm)NAME
Test::Unit::Assertion - The abstract base class for assertions
Any assertion class that expects to plug into Test::Unit::Assert needs to implement this interface.
new Creates a new assertion object. Takes whatever arguments you desire. Isn't strictly necessary for the framework to work with this
class but is generally considered a good idea.
This is the important one. If Test::Unit::Assert::assert is called with an object as its first argument then it does:
$_->do_assertion(@_[1 .. $#_]) ||
This means that "do_assertion" should return true if the assertion succeeds and false if it doesn't. Or, you can fail by throwing a
Test::Unit::Failure object, which will get caught further up the stack and used to produce a sensible error report. Generally it's good
practice for do_assertion to die with a meaningful error on assertion failure rather than just returning false.
Copyright (c) 2001 Piers Cawley <firstname.lastname@example.org>.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.8 2006-09-13 Test::Unit::Assertion(3pm)
i am attempting to run the sleep function (i've also tried select) during the execution of a command to mimic a status. for example:
# this is a terminal screen
# here the process is executed
# below this a status is displayed while the command executes like so:... (3 Replies)
I have put TMOUT=1800;export TMOUT in the /etc/profile, put it does not work, by the way the root default shell is sh. but I wana every one including root to terminate the session after setting idle for 1800 seconds. thank for the help. (1 Reply)
I process is sleeping after 12 hours but i need to be run this to 24 hours but it goes in sleep mode after 12 hours what should i do to make process always running.Kindly give me suggestion. (0 Replies)
I've searched this forum for telnet idle timeout problem. I tried to set timeout parameters in /etc/profile
This doesn't work for Redhat kernel 220.127.116.11. It's really frustrating.
Can anybody tell me what else I could try?
Thanks a lot!
jing (0 Replies)
Discussion started by: jing han
7. Forum Support Area for Unregistered Users & Account Problems
I have a busybox with tinylogin. How can I log user out when I found the telnet session is idle for 10 seconds?
I found it doesn't work for me.
Can anybody help me?
Thanks a lot!
jing (1 Reply)
I have a local account for a unix server. The idle timeout for the account is around 10 mins. I have to login to the server multiple times during the day. Is there a way to increase the idle timeout or may be a script that I can run on background so it is not idle. Something like echo date every 9... (3 Replies)
I have ascript with a recursive funtion below.
I have mentioned to sleep for 60minutes but it doesnt doing so.
Its keep on running until if /elif conditions satiesfies.
Can you pls help what is wrong here.
echo "`date` - Current status... (2 Replies)
My company uses a proprietary GUI to its business system (Strategix) which runs on Windows clients, whereas the back-end runs on a SCO OpenServer 5.0.6a server.
We're moving to a new business system next year and the business is growing and we're running out of licences on Strategix and making... (1 Reply)
I have function f1 and f2, I want it excute five items with different function in the list the the same time with process.
I did a testing in start_build_feature1, it sleep about 100s, in the sleeping start_build_feature2 print nothing, can someone help me modify this scripts
I don't when... (2 Replies)
sleeping processes in the following output , are they doing anything , but consuming lot of sources, should I need to kill them , how to know , , what they are doing
and the output says out of 260 processes only 9 are running , and 251 are sleeping , what does the sleeping means, can... (8 Replies)