diff --git a/6-9-2023 Cohort 1 Sync Notes.md b/6-9-2023 Cohort 1 Sync Notes.md index 4f7d1f3..ae1bd89 100644 --- a/6-9-2023 Cohort 1 Sync Notes.md +++ b/6-9-2023 Cohort 1 Sync Notes.md @@ -14,7 +14,7 @@ Start-Service W32Time 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) * 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