搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Closing Thunderbird from Bash

  • 1 回覆
  • 0 有這個問題
  • 10 次檢視
  • 最近回覆由 Wisewiz

more options

I am building a script to backup /home/username/.thunderbird folder every night, and I want to make sure that Thunderbird is not running while the backup is performed, and if it's running the script should close (gracefully kill) Thunderbird before performing backup.

What is the recommended Bash command to gracefully kill Thunderbird without corrupting any settings/mailbox files?

Best regards,

I am building a script to backup /home/username/.thunderbird folder every night, and I want to make sure that Thunderbird is not running while the backup is performed, and if it's running the script should close (gracefully kill) Thunderbird before performing backup. What is the recommended Bash command to gracefully kill Thunderbird without corrupting any settings/mailbox files? Best regards,

所有回覆 (1)

more options

Just so you'll know your question has, in fact, been read here, I'm going to offer a small suggestion:

wmctrl -c thunderbird

Does that look like a bash line you could use?