Update page '6-9-2023 Cohort 1 Sync Notes'
@@ -14,7 +14,7 @@
|
|||||||
Start-Service W32Time
|
Start-Service W32Time
|
||||||
w32tm /resync
|
w32tm /resync
|
||||||
```
|
```
|
||||||
* MacOS resync command: TODO @j
|
* MacOS resync command: `sudo sntp -sS time.apple.com`
|
||||||
* Use `platform.system()` to figure out whether it's Windows or MacOS, and use `subprocess` to run the NTP sync command so the whole computer has accurate time. Make sure to check the return code (0 = success, not zero = failure)
|
* Use `platform.system()` to figure out whether it's Windows or MacOS, and use `subprocess` to run the NTP sync command so the whole computer has accurate time. Make sure to check the return code (0 = success, not zero = failure)
|
||||||
* Although `subprocess` can give you the return code directly, it's helpful to know that it's available in the shell/powershell as `$?` on MacOS/Linux, and `$LASTEXITCODE` in powershell.
|
* Although `subprocess` can give you the return code directly, it's helpful to know that it's available in the shell/powershell as `$?` on MacOS/Linux, and `$LASTEXITCODE` in powershell.
|
||||||
* TODO @j figure out how to get systemd running in the container
|
* TODO @j figure out how to get systemd running in the container
|
||||||
|
|||||||
Reference in New Issue
Block a user