Is there any mutex/semaphore mechanism in shell scripts?

前端 未结 3 931
名媛妹妹
名媛妹妹 2020-12-05 13:25

I\'m looking for mutex/semaphore/concurrency mechanism in shell script. Consider following situation: Unless \"a\" user does not close the shared file, \"b\" user should no

3条回答
  •  自闭症患者
    2020-12-05 13:50

    See BashFAQ and ProcessManagment for discussions on file locking in Bash.

    Tagging your question as shell (only) limits the number of people that can help you. You may want to add unix, ksh, bash.

    There are numerous questions/answers on this topic posted here already on S.O.

    I hope this helps.

提交回复
热议问题