Skip to content

Simple bash script to compare file locks without using flock

License

Notifications You must be signed in to change notification settings

sigg3/filelocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

filelocks

Simple bash script to compare file locks without using flock. Will hopefully demonstrate that you should not use files for locking (use flock or mkdir).

Output should look like this:

# Comparing file lock methods (BashFAQ/045) - only 1 should run

Testing method 1: file locks
4 instance(s) were executed successfully.

Testing method 2: dir locks
1 instance(s) were executed successfully.
Done.

About

Simple bash script to compare file locks without using flock

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages