Skip to main content
Fix broken link. Link to manual.
Source Link
Graham Miln
  • 45.6k
  • 8
  • 94
  • 128

Another option is pmsetpmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinatecaffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to binarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to binarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to binarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

replaced http://apple.stackexchange.com/ with https://apple.stackexchange.com/
Source Link

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to binarybob's commentbinarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to binarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to binarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

fixed stupid formatting mistake
Source Link
daviesgeek
  • 40k
  • 53
  • 166
  • 205

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to [binarybob's comment[(http://apple.stackexchange.com/questions/62558/how-to-prevent-mac-sleep-from-command-line?newsletter=1&nlcode=67587%7c955e#comment72294_62562)binarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to [binarybob's comment[(http://apple.stackexchange.com/questions/62558/how-to-prevent-mac-sleep-from-command-line?newsletter=1&nlcode=67587%7c955e#comment72294_62562), you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

Another option is pmset. Use the command pmset noidle to prevent sleep as long as pmset is running. Unfortunately, it requires a separate Terminal window with pmset running in it. However, the other option, caffeinate, only lets you set a certain time. So it's a matter of choosing whether you want to open a second SSH session, or deal with a time restraint.

Edit: According to binarybob's comment, you can actually run it in the background like this: pmset noidle & To get back to pmset type fg.

added 292 characters in body
Source Link
daviesgeek
  • 40k
  • 53
  • 166
  • 205
Loading
Source Link
daviesgeek
  • 40k
  • 53
  • 166
  • 205
Loading