Sponsored Content
The Lounge What is on Your Mind? How do you prefer to read books? Post 302875215 by ni2 on Tuesday 19th of November 2013 01:25:05 AM
Old 11-19-2013
Preference is
  • Paper
  • Tablet
  • E-reader
  • Laptop/Desktop
In that order :-)
 

7 More Discussions You Might Find Interesting

1. New to Unix. Which books should I read?

An addition for UNIX books to read

I wanted to add this to the FAQ section on which UNIX books should be read, but the thread is closed. One of my all time favorites is now available for free download, "UNIX Text Processing": http://www.oreilly.com/openbook/utp/ It discusses many fundemental questions that I often see posted... (0 Replies)
Discussion started by: kduffin
0 Replies

2. UNIX for Dummies Questions & Answers

Books and such!

Hi guyes and girls. I am totaly new to this, so i need some advice on books and such. What book should i read if im going to get good in Unix? And if im going to read that book, what OS do i need for my first experience? And where do i get it? Some other things you folks can post is... (4 Replies)
Discussion started by: Seyedx
4 Replies

3. UNIX for Dummies Questions & Answers

why most of the people prefer linux nowadays y not solaris?

Hi, Anyone plz explain me, Now most of the people prefering linux over solaris. what are the main advantages in linux over solaris. Thanks muthulingaraja (3 Replies)
Discussion started by: muthulingaraja
3 Replies

4. UNIX for Dummies Questions & Answers

im very new to unix/linux can someone tell me the best books to read...

im very new to unix/linux operating system and having a hard time understanding the command ( grep, ls, echo and variables) is there any book that is simple to understand... after taking this unix/linux operating system i need to take unix operating system..can someone help me please!!! (1 Reply)
Discussion started by: 2071fox
1 Replies

5. Windows & DOS: Issues & Discussions

Do you prefer Quickbooks, Microsoft or another small business accounting software?

I am starting a small business. I need software to invoice and track payments, track income and expense and basically keep everything organized for tax time. I've read positive and negative on all small business accounting software, so now I'm really confused. Oh, my business is a service one, so I... (3 Replies)
Discussion started by: sunybck
3 Replies

6. What is on Your Mind?

Why older administrators prefer sendmail ?

I work in small size company and for mail server my chief :D says MS exchange is little baby. I saw MS can make a good product but big is question why older administrators like to use sendmail which doesn't have calendar. Is sendmail alfa and omega in mail servers ? (11 Replies)
Discussion started by: solaris_user
11 Replies

7. What is on Your Mind?

Do you read books with an ebook reader?

I bought a Sony PRS-650 Reader to read books and I'm loving it. For one thing, there are zillions of free books in epub format available for download for free. Many of them are out of print, so you would have to pay a high price to get a printed copy. Most current releases have to be paid for,... (15 Replies)
Discussion started by: KenJackson
15 Replies
UPSCLI_LIST_START(3)						    NUT Manual						      UPSCLI_LIST_START(3)

NAME
upscli_list_start - begin multi-item retrieval from a UPS SYNOPSIS
#include <upsclient.h> int upscli_list_start(UPSCONN_t *ups, int numq, const char **query) DESCRIPTION
The upscli_list_start() function takes the pointer ups to a UPSCONN_t state structure, and the pointer query to an array of numq query elements. It builds a properly-formatted request from those elements and transmits it to upsd(8). Upon success, the caller must call upscli_list_next(3) to retrieve the elements of the list. Failure to retrieve the list will most likely result in the client getting out of sync with the server due to buffered data. USES
This function implements the "LIST" command in the protocol. As a result, you can use it to request many different things from the server. Some examples are: o LIST UPS o LIST VAR <ups> o LIST RW <ups> o LIST CMD <ups> o LIST ENUM <ups> <var> o LIST RANGE <ups> <var> QUERY FORMATTING
To see the list of variables on a UPS called su700, the protocol command would be LIST VAR su700. To start that list with this function, you would populate query and numq as follows: int numq; const char *query[2]; query[0] = "VAR"; query[1] = "su700"; numq = 2; All escaping of special characters and quoting of elements with spaces are handled for you inside this function. ERROR CHECKING
This function checks the response from upsd(8) against your query. If it is not starting a list, or is starting the wrong type of list, it will return an error code. When this happens, upscli_upserror(3) will return UPSCLI_ERR_PROTOCOL. RETURN VALUE
The upscli_list_start() function returns 0 on success, or -1 if an error occurs. SEE ALSO
upscli_fd(3), upscli_get(3), upscli_readline(3), upscli_sendline(3), upscli_ssl(3), upscli_strerror(3), upscli_upserror(3) Network UPS Tools 05/31/2012 UPSCLI_LIST_START(3)
All times are GMT -4. The time now is 05:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy