Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wsreg_query_create(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_location(3WSREG)		    Product Install Registry Library Functions			  wsreg_query_set_location(3WSREG)

NAME
wsreg_query_set_location, wsreg_query_get_location - set or get the location of a query SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...] #include <wsreg.h> int wsreg_query_set_location(Wsreg_query *query, const char *location); char *wsreg_query_get_location(Wsreg_query *query); DESCRIPTION
The wsreg_query_set_location() function sets the location specified by location in the query specified by query. If a location has already been set in the specified query, the resources associated with the previously set location are released. The wsreg_query_get_location() function gets the location string from the query specified by query. RETURN VALUES
The wsreg_query_set_location() function returns a non-zero value if the location was set correctly; otherwise 0 is returned. The wsreg_query_get_location() function returns the location from the specified query structure. The resulting location string is not a copy, so it must not be released by the caller. USAGE
The query identifies fields used to search for a specific component in the product install registry. By specifying the install location, the component search is narrowed to all components in the product install registry that are installed in the same location. 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_location(3WSREG)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

query to get a value from database

Hi friends, I have written a script which retrieves one value from the database. It takes time for the sql query to get the desired output. So the query runs fine from TOAD or from UNIX console. However if I put this in a script it doesn't work. The script is as below. #! /bin/ksh... (2 Replies)
Discussion started by: vivek_damodaran
2 Replies

2. 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

3. 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

4. AIX

rootvg mirroring query

Hi, I am having query regarding rootvg mirroring, How to find out that rootvg is mirrored? Regards Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies

5. Shell Programming and Scripting

need to create a insert query for a file

Hi Guys, I need to create a insert query for the below file Fri Sep 4 06:25:51 2009 ACTION : 'CREATE INDEX S100S_DC.PLInsuranceReportRules_testI1 ON S100S_DC.PLInsuranceReportRules_test1(ENTITY_KEY)' DATABASE USER: '/' PRIVILEGE : SYSDBA CLIENT USER: oracle CLIENT TERMINAL: pts/3... (6 Replies)
Discussion started by: mac4rfree
6 Replies

6. 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

7. 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

8. 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

9. 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

10. 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

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