{"id":13576435,"url":"https://github.com/discoteq/flock","last_synced_at":"2025-10-21T04:55:00.772Z","repository":{"id":19773946,"uuid":"23032276","full_name":"discoteq/flock","owner":"discoteq","description":"flock(1) locks files","archived":false,"fork":false,"pushed_at":"2022-12-24T03:45:00.000Z","size":45,"stargazers_count":213,"open_issues_count":23,"forks_count":27,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-09-27T17:47:34.033Z","etag":null,"topics":["boring","portable"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/discoteq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-17T03:19:58.000Z","updated_at":"2025-09-24T12:48:18.000Z","dependencies_parsed_at":"2023-01-13T20:34:51.667Z","dependency_job_id":null,"html_url":"https://github.com/discoteq/flock","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/discoteq/flock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoteq%2Fflock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoteq%2Fflock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoteq%2Fflock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoteq%2Fflock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/discoteq","download_url":"https://codeload.github.com/discoteq/flock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoteq%2Fflock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280207203,"owners_count":26290616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boring","portable"],"created_at":"2024-08-01T15:01:10.204Z","updated_at":"2025-10-21T04:55:00.746Z","avatar_url":"https://github.com/discoteq.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"flock(1)\n=======\n\n**flock(1)** locks files\n\n## The simplest thing that could possibly work\n\nTo exclusively lock `/tmp/my.lock` while running the utility\n`echo \"hello, world!\"`:\n\n    flock /tmp/my.lock echo \"hello, world!\"\n\nYou can also use to run a single instance of rsync at a time - note: no need to escape double quotes\n\n    flock -n /tmp/my-lock.lock rsync -avr -e \"ssh -p 22\" \"~/my path with spaces/\" user@remote-host:/Documents/\n\n## Installing\n\nOn macOS using Homebrew:\n\n    brew install flock\n\nFrom source:\n\n    FLOCK_VERSION=0.4.0\n    wget https://github.com/discoteq/flock/releases/download/v${FLOCK_VERSION}/flock-${FLOCK_VERSION}.tar.xz\n    xz -dc flock-${FLOCK_VERSION}.tar.xz | tar -x\n    cd flock-${FLOCK_VERSION}\n    ./configure\n    make\n    make install\n\n## Wait, isn't there already a flock(1)?\n\nYep, it's part of [util-linux](https://en.wikipedia.org/wiki/Util-linux).\n\nWhat makes discoteq flock(1) different is:\n\n* Support for latest stable Linux (Debian \u0026 CentOS), Illumos (OmniOS \u0026 SmartOS), Darwin \u0026 FreeBSD\n* Testing for all major features and edge conditions\n* ISC license\n* Public access to source history and bug tracking\n\n## Project Principles\n\n* Community: If a newbie has a bad time, it's a bug.\n* Software: Make it work, then make it right, then make it fast.\n* Technology: If it doesn't do a thing today, we can make it do it tomorrow.\n\n## Contributing\n\nGot an idea? Something smell wrong? Cause you pain? Or lost seconds of your life you'll never get back?\n\nAll contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.\n\nProgramming is not a required skill. Whatever you've seen about open source and maintainers or community members saying \"send patches or die\" - you will not see that here.\n\nIt is more important to me that you are able to contribute.\n\nCreating a new [issue](https://github.com/discoteq/flock/issues) is probably the fastest way to get something fixed, but feel free to contact me via email (joseph@josephholsten.com), in IRC or however you can.\n\nThere's no wrong way to file a bug report, but I'll be able to help fastest if you can describe:\n* what you did\n* what you expected to happen\n* what actually happened\n\n(Some of the above was repurposed with \u003c3 from logstash)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscoteq%2Fflock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiscoteq%2Fflock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscoteq%2Fflock/lists"}