doozer - Doozer Lock service command line client
doozer [options] <command> [options] [args]
doozer is a client for the Doozer Lock Service as implemented by the doozerd(8) binary. It can be used to perform any kind of doozer lock service operation which is supported by the API, such as creating or updating entries, watching them for changes or listing contents of arbitrary trees on the lock service.
Each command takes zero or more options and zero or more arguments. In addition, there are some global options that can be used with any command. Global options are: -a=URI Connect to the given doozer service. The URI can contain an arbitrary number of address parts concatenated by an ampersand character (&). An URI always starts with the prefix doozer:?. Valid options include: ca specifies the "cluster address", which could be an IP address and port combination or a host name with a port appended to it. cn specifies a cluster name which will be looked up from the lock servers specified in the environment variable DOOZER_BOOT_URI(whichalsocontainsadoozerURI). sk can specify a shared key which is used to authenticate to the lock service. An example URI would look like this: doozer:?ca=doozer1.example.com&ca=doozer2.example.com&sk=letmein -b=URI specifies the Doozer Boot URI which is used to resolve any cluster names passed in the -a flag. It shares the same syntax as -a. -h shows a short context help. -r=rev specifies the revision number for commands which optionally accept one. -v tells doozer to print its version string. Commands are: add path Add a key only if it isn't already set. Takes the file input from stdin. del path rev Deletes the file if it is older than revision rev. find path Lists all files under the given path. get path Fetches the contents of the entry at path and displays it to stdout. help command Displays detailed help for the given command. nop Just wait for consensus between all lock servers and return. rev path Display the current revision of path. set path rev Sets the contents of path to the contents read from stdin if it's older than rev. stat path Prints the current status of the entry at path. touch path Update the revision of the file at path. wait glob Wait until a change occurs in an entry which matches glob. watch glob Watch for changes in entries which match glob. Prints all changes to such entries to stdout.
The following environment variables are honored: DOOZER_URI The doozer cluster to bind to; overridden by -a. DOOZER_BOOT_URI The DzNS to lookup address in; overridden by -b.
The exit status is 0 on success, 1 for a rev mismatch, and 2 otherwise.
doozerd(8).
doozer was written by Blake Mizerany and Keith Rarick.
Please file any bug in the issue tracker at https://github.com/ha/doozer/issues
Copyright 2010-2013 Blake Mizerany, Keith Rarick. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.