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
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
Reopen the Terminal and press the up arrow key until it appears. If you need to do this on a regular basis, copy and paste it into another location.
(103377)
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!
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
Same thing happens, though I am still not sure what I should be doing after entering the command, just leave it there with terminal open?...press any keys to enter into terminal? ....quit terminal? I cut and pasted it, then opened up Super Duper and still slept in a minute, though I am probably doing something wrong.
My error, it works. Apologize for morphing the original question that Neil answered and couldn't figure out how to change the helpful/solved credit part.
Editing a caffeinate command