Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wsreg_query_free(3wsreg) [sunos man page]

wsreg_query_create(3WSREG)			    Product Install Registry Library Functions				wsreg_query_create(3WSREG)

NAME
wsreg_query_create, wsreg_query_free - create a new query SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...] #include <wsreg.h> Wsreg_query *wsreg_query_create(void); void wsreg_query_free(Wsreg_query *query); DESCRIPTION
The wsreg_query_create() function allocates a new query that can retrieve components from the product install registry. The wsreg_query_free() function releases the memory associated with the query specified by query. RETURN VALUES
The wsreg_query_create() function returns a pointer to the newly allocated query. The resulting query is completely empty and must be filled in to describe the desired component. USAGE
The query identifies fields used to search for a specific component in the product install registry. The query must be configured and then passed to the wsreg_get(3WSREG) function to perform the registry query. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
wsreg_get(3WSREG), wsreg_initialize(3WSREG), wsreg_query_set_id(3WSREG), wsreg_query_set_instance(3WSREG), wsreg_query_set_loca- tion(3WSREG), wsreg_query_set_unique_name(3WSREG), wsreg_query_set_version(3WSREG), wsreg_unregister(3WSREG), attributes(5) SunOS 5.10 22 Sep 2000 wsreg_query_create(3WSREG)

Check Out this Related Man Page

wsreg_query_set_unique_name(3WSREG)		    Product Install Registry Library Functions		       wsreg_query_set_unique_name(3WSREG)

NAME
wsreg_query_set_unique_name, wsreg_query_get_unique_name - set or get the unique name of a query SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...] #include <wsreg.h> int wsreg_query_set_unique_name(Wsreg_query *query, const char *unique_name); char *wsreg_query_get_unique_name(const Wsreg_query *query); DESCRIPTION
The wsreg_query_set_unique_name() function sets the unique name specified by unique_name in the query specified by query. If a unique name has already been set in the specified query, the resources associated with the previously set unique name are released. The wsreg_query_get_unique_name() function gets the unique name string from the query specified by query. The resulting string is not a copy and must not be released by the caller. RETURN VALUES
The wsreg_query_set_unique_name() function returns a non-zero value if the unique_name was set correctly; otherwise 0 is returned. The wsreg_query_get_unique_name() function returns a copy of the unique_name from the specified query. USAGE
The query identifies fields used to search for a specific component in the product install registry. By specifying the unique name, the component search is narrowed to all components in the product install registry that have the specified unique name. Other fields can be specified in the same query to further narrow the search. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
wsreg_get(3WSREG), wsreg_initialize(3WSREG), wsreg_query_create(3WSREG), attributes(5) SunOS 5.10 22 Sep 2000 wsreg_query_set_unique_name(3WSREG)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

AIX Library Interposer

Hello, I have query on Library Interposer: We are working on a product which requires library interposing. And according to the market requirements, needs to be migrated on AIX OS also. So now, the question is "Is library interposing possible in AIX?" If yes, how? If no, then what are the... (1 Reply)
Discussion started by: mrunalrane
1 Replies

2. Shell Programming and Scripting

query.....

hi friends i want to know details of `exec` exact use of this command ..... actually i went through the man page but i didn`t get the satisfactory ...conclusion.... thaks in advance.... (1 Reply)
Discussion started by: newson
1 Replies

3. UNIX for Dummies Questions & Answers

Question about query

I am using SCO Unix, and inside have forte software which is similar with MySQL to store our product data. I am trying to print out serial number. I use the following code and get result is like Q>PRINT SERNUM WHERE ORDNUM=720385 USEKEY OE_ORDSER_KB 'T'erminal, 'P'rinter, or 'F'ile? T... (2 Replies)
Discussion started by: wendyz
2 Replies

4. Shell Programming and Scripting

oracle query output in excel file

Hi All, I have seen many examples of spooling query output in csv file. But I want to spool the query results in proper excel file. Can you guys help me on this? (4 Replies)
Discussion started by: yabhi_22
4 Replies

5. Shell Programming and Scripting

SQLPLUS query in Unix script

Hi, I am using sqlplus query to get results in a csv format in unix. I am using ksh, and below is the query. echo "select r.num|| ',' || p.path ||',"' || r.issue_description ||'",' ||p.timestamp from events r, messagepath p;">> $QUERY_FILE sqlplus -s $LOGIN @ $QUERY_FILE>>$OUTFILE ... (2 Replies)
Discussion started by: Nutan
2 Replies

6. Shell Programming and Scripting

want to query : YES or NO

hi i want to make script. where i want to query from the user yes or no exp: do you want to proceed : y for yes n for NO. how this is possible in unix (3 Replies)
Discussion started by: dodasajan
3 Replies

7. UNIX Desktop Questions & Answers

egrep query....request for help

Hi Please can someone help me with a query. Will the following query bring back 'Jolly Brewers'. My understanding is that it will bring back either 'Jolly' or 'Brewers' but not 'Jolly Brewers'....because of the pipe egrep '(Jolly)|(Brewers)' Public_Houses Please can someone confirm? ... (6 Replies)
Discussion started by: tmn0004676
6 Replies

8. Programming

sort data by date.. pls help

hi all, could anyone help me? I need to query output by compare dates from 2 table and i'm using a UNION query..and wanted to sort the output by date.. My query like this: SELECT TO_CHAR(DATE) DATE1, INVOICE FROM ACCOUNT1 WHERE DATE < (to_date('122003','MMYYYY')) UNION ... (2 Replies)
Discussion started by: kate katherine
2 Replies

9. Shell Programming and Scripting

Script to read a file

Can someone please give me a big help? I'm trying to read the file below, which have the format: query,XX,XX,6559,0.132,0.210,0.108,0.03% query,XX,XX,6559,0.132,0.210,0.108,0.03% query,XX,XX,6559,0.132,0.210,0.108,0.03% Need to get the 4th value: 6559 and sum all and put it into a var: ... (2 Replies)
Discussion started by: letakeda
2 Replies

10. Shell Programming and Scripting

Formating of query variable in perl

Hi , I am facing error in perl when I assign a below query in a varibale $query because of new line charchters $query= SELECT XYZ , ABC , c2 , c3 , c4 FROM t1 how can i get rid of new line charchters with out changing the... (2 Replies)
Discussion started by: gvk25
2 Replies

11. Post Here to Contact Site Administrators and Moderators

Help me

Hi, I have a query regarding searching the threads initiated by me. Once i browse out from the page where i have started the query. i m not able to see the replies to my post later. Is ther any tab where i can refer the threads started by me and the replies to it...at a later point. ... (3 Replies)
Discussion started by: jayii
3 Replies

12. UNIX for Dummies Questions & Answers

Where does id / getent query ?

I'm typing "id <user's id>" and its returning a different UID that what is defined in our administration system. Where does id / getent query and where is it configured to query? I'm guessing it queries the local /etc/passwd file first, and then if it doesn't find anything it would query LDAP... (2 Replies)
Discussion started by: MaindotC
2 Replies

13. Red Hat

Sql query through shell script

hey , i am using this code to store value of a sql query and and then use it in other query but after some time , but it is not working. please help #!/bin/bash val_1=$( sqlplus -s rte/rted2@rel76d2 << EOF setting heading off select max(stat_id) from cvt_stats; exit EOF ) nohup... (5 Replies)
Discussion started by: ramsavi
5 Replies

14. UNIX for Dummies Questions & Answers

Dig total query time?

I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you.... (3 Replies)
Discussion started by: r7a7v7
3 Replies

15. Shell Programming and Scripting

Need wrapper around mysql query

Hello Friends, I am using check_mysql_query plugin in nagios to query database and get output. query is working fine but output which i am getting contain query. I want to remove query from output and give custom message which will be simple and understandable. Can you help me here with any... (5 Replies)
Discussion started by: ghpradeep
5 Replies