Last active
March 28, 2017 12:45
-
-
Save trytuna/f4b8ef3dbae59092d2371d94ab05416b to your computer and use it in GitHub Desktop.
Prevent external USB HDD from spinning down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.example.keepmealive</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/touch</string> | |
<string>/Volumes/MiniServer/keepmealive</string> | |
</array> | |
<key>StartInterval</key> | |
<integer>600</integer> | |
</dict> | |
</plist> |
launchctl load -w ~/Library/LaunchAgents/keepmealive.plist
touch /Volumes/MiniServer/keepmealive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save to:
~/Library/LaunchAgents/keepmealive.plist