Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
別の端末が特定のスクリプトを実行しているときはいつでも、他の端末が特定のスクリプトを実行できないようにしたいのですが、bashで実行する方法についてはよくわかりません。どんな助けやヒントも大歓迎です!
例:そのスクリプトが別の端末で実行されている場合、他のすべての端末もその特定のスクリプトを実行できません。そして、「メンテナンス中です」というメッセージを表示します。