Last active
February 16, 2023 08:23
-
-
Save zxt-tzx/8619958c98a84a9f1a7443565ee3ccd5 to your computer and use it in GitHub Desktop.
shell script to kill bird (iCloud syncing)
This file contains hidden or 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
#!/bin/sh | |
pid=$(ps -fe | grep 'bird' | grep -v grep | awk '{print $2}') | |
if [[ -n $pid ]]; then | |
kill $pid | |
else | |
echo "bird is not running" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment