Update page '6-9-2023 Cohort 1 Sync Notes'

j
2023-06-12 14:17:39 +02:00
parent c67c1b9b21
commit 5b0e3c014a
+1 -1
@@ -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