Skip to content

Instantly share code, notes, and snippets.

@zxt-tzx
Last active February 16, 2023 08:23
Show Gist options
  • Save zxt-tzx/8619958c98a84a9f1a7443565ee3ccd5 to your computer and use it in GitHub Desktop.
Save zxt-tzx/8619958c98a84a9f1a7443565ee3ccd5 to your computer and use it in GitHub Desktop.
shell script to kill bird (iCloud syncing)
#!/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