2

Is there a terminal command I can use to quit Google's "Backup and Sync" software? I am writing a Bash script to set the machine up for maximum battery life and I would like to shutdown all non-essential software that I usually have running in the background such as Backup and Sync. I tried the usual suspects (osascript -e 'tell app "Backup and Sync from Google" to quit' AND killall 'Backup and Sync from Google') without success.

3

Weird, just tried killall "Backup and Sync from Google" and it failed.

Try killall Backup\ and\ Sync, that worked for me for some reason. Adding \ from seems to break things.

  • Thanks, that seemed to work. Do you know if the killall command allows the process to exit gracefully? – Rumboogy Dec 3 '17 at 0:29
  • By default, killall sends the SIGTERM signal; though this allows the process to shut down somewhat gracefully, it's not the same as Quit or Force Quit, nor as graceful. The AppleScript you posted is closer to what you want for a graceful exit, though I couldn't get it to work. Perhaps GUI scripting might be a solution? – JMY1000 Dec 3 '17 at 1:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .