Editing a caffeinate command

If I enter a caffeinate command in terminal, how do I get it back at a later time to edit it ?

iMac, OS X Mountain Lion (10.8.5), late 2009

Posted on Mar 24, 2014 2:28 PM

Reply
5 replies

Mar 24, 2014 4:02 PM in response to Niel

I guess I got ahead of myself. I am trying to override a sleep setting of 1 minute when Super Duper is open and increase it to 3 minutes. This is just at a test stage to see if it works. This is the command line I am using, but the mac still sleeps in a minute or so. After entering the command line do I need to press any keys and quit terminal? Is th ecommand line wrong? I am doing this on a cloned drive realizing the risks of using terminal in the wrong hands (me 🙂)



caffeinate -dsi -t 180 /Applications/SuperDuper!.app/Contents/MacOS/SuperDuper!

Mar 24, 2014 7:05 PM in response to mrokloricred37

man caffeinate

...Timeout value is not used when an utility is invoked with this command.


However, I suspect part of your problem might be your SuperDuper! path


caffeinate -dsi -t 180 /Applications/SuperDuper!.app/Contents/MacOS/SuperDuper!


I suspect that you need to quote the string to protect the ! characters from shell history expansion. What happens if you try:


caffeinate -dsi  '/Applications/SuperDuper!.app/Contents/MacOS/SuperDuper!'


Message was edited by: BobHarris

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Editing a caffeinate command

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.