upsclient - Network UPS Tools client access library
The Network UPS Tools (NUT) upsclient library provides a number of useful functions for programs to use when communicating with upsd(8). Many of the low-level socket and protocol details are handled automatically when using this interface. State is maintained across calls in an opaque structure called UPSCONN_t. Callers are expected to create one per connection. These will be provided to most of the upsclient functions. The format of this structure is subject to change, and client programs must not reference elements within it directly.
Before creating any connection, and in general using any upscli function, you must call upscli_init(3) with proper parameters to initialize upscli module. To register specific host security policy, you must call upscli_add_host_cert(3) before initialize connection to it. In the same way, just before exiting, and after all upscli usage, you must call upscli_cleanup(3) to flush cache files and perform other cleanup.
To create a new connection, use upscli_connect(3). This will also initialize the UPSCONN_t structure. To verify that a connection has been established later, upscli_fd(3) can be used to return the file descriptor. Clients wishing to check for the presence and operation of SSL on a connection may call upscli_ssl(3). The majority of clients will use upscli_get(3) to retrieve single items from the server. To retrieve a list, use upscli_list_start(3) to get it started, then call upscli_list_next(3) for each element. Raw lines of text may be sent to upsd(8) with upscli_sendline(3). Reading raw lines is possible with upscli_readline(3). Client programs are expected to format these lines according to the protocol, as no checking will be performed before transmission. At the end of a connection, you must call upsclient_disconnect(3) to disconnect from upsd and release any dynamic memory associated with the UPSCONN_t structure. Failure to call this function will result in memory and file descriptor leaks in your program.
In the event of an error, upscli_strerror(3) will provide human-readable details on what happened. upscli_upserror(3) may also be used to retrieve the error number. These numbers are defined in upsclient.h as UPSCLI_ERR_*.
libupsclient-config(1), upscli_init(3), upscli_cleanup(3), upscli_add_host_cert(3), upscli_connect(3), upscli_disconnect(3), upscli_fd(3), upscli_getvar(3), upscli_list_next(3), upscli_list_start(3), upscli_readline(3), upscli_sendline(3), upscli_splitaddr(3), upscli_splitname(3), upscli_ssl(3), upscli_strerror(3), upscli_upserror(3)
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.