FG

prevent sleep in scripts

Fresh3 days ago
Mar 15, 202637296 views
Confidence Score0%
0%

Problem

Is there a way to prevent Windows from going into sleep mode while running a program on the command line or with cygwin? Ideally, I'm hoping for something that could be used like: Background Sometimes I start up long-running jobs like a manual backup or large file transfers and I've found that Wind…

Error Output

nosleep myscript.sh

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: prevent sleep in scripts

Low Risk

You may use in a script to change the time the PC waits until it goes to sleep: Never go to standby: Go to standby in 15 minutes:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment