03-05-2009
Thank you for your response. I will try that too.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
How can I know the perl interpreter is installed in the system?
When I type 'find / -name perl -print 2>/dev/null', there is 6 lines listing:
/usr/local/bin/perl
/usr/bin/perl
/usr/lib/perl-5.8.0/bin/perl
/usr/opt/IAFW310/PERL/perl
/usr/opt/IAFW310/PERL/t/perl... (3 Replies)
Discussion started by: zp523444
3 Replies
2. UNIX for Dummies Questions & Answers
I want to check which databases are installed on my FreeBSD installation. This is what I did: pkg_info | grep mysql
How do I check all in one go whether also sqlite, postgresql, firebird is installed?
Thanks in advance (3 Replies)
Discussion started by: figaro
3 Replies
3. HP-UX
I develop a unix program in HPUX
I want to package my program
to install on HPUX in some dierctory folder
like /user/local/sbin/xxx
and preinstall some software before install my program
package like xxx.depot
how can i do it, have any tools like use setupfactory tools in windows
... (4 Replies)
Discussion started by: alert0919
4 Replies
4. UNIX for Advanced & Expert Users
Hi all,
I'm running a simulator and I'm noticing an slow increase in memory for long simulations such that the simulation has to end because of a lack of memory. A colleague of mine ran Valgrind memcheck and reported that nothing of interest was reported other than known mem leaks. My advisor... (2 Replies)
Discussion started by: pl4u
2 Replies
5. Shell Programming and Scripting
Hi,
I am new to linux, and i want to know which mysql dbd is installed on linux,
what is the command to check this.
bash-2.05$ uname -a
Linux SURINT01 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
Thanks
Prakash GR (6 Replies)
Discussion started by: prakash.gr
6 Replies
6. Shell Programming and Scripting
Hi,
For the below problem, awk script is needed..
input file :
jill
jack
jill
jill
jack
jill
jack
jill
Required:
here,
i need to check from first line.
reference is jack. jill need to verified with next line jack. if found print
jill & jack combination hill1
jack & jill &... (0 Replies)
Discussion started by: vasanth.vadalur
0 Replies
7. Ubuntu
Hi
I would like to ask in ubuntu or linux on how to list all my package or software the i installed via source code( compile installed in dir default is /usr/local) just like i solaris in which if you installed a package in ur choosing default root installation dir you can just issue a command... (2 Replies)
Discussion started by: jao_madn
2 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
Good morning! I have a file which looks something like this:
Command was launched from partition 0.
------------------------------------------------
Executing command in server server3
Thu Jan 12 11:10:39 EET 2012
------------------------------------------------... (3 Replies)
Discussion started by: rymnd_12345
3 Replies
9. Shell Programming and Scripting
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi, female,... (12 Replies)
Discussion started by: jayaP
12 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
LEARN ABOUT OPENSOLARIS
mms_get_tree
mms_rsp_type(3MMS) Media Management System Library Functions mms_rsp_type(3MMS)
NAME
mms_rsp_type, mms_get_tree, mms_get_str, mms_get_attribute, mms_handle_err_rsp - MMS client functions for handling responses
SYNOPSIS
cc [ flag...] file... -lmms [ library...]
#include <mms_api.h>
int mms_rsp_type(void *response);
mms_par_node_t *mms_get_tree(void *response);
char *mms_get_str(void *response);
char *mms_get_attribute(void *response, char *name, void **prev);
int mms_handle_err_response(void *response, int * class, int * code,
char **message);
DESCRIPTION
For these functions, response is the MMS response to an MMP command sent by the client.
The mms_rsp_type() macro returns the type of the response. The following is a list of responses:
MMS_API_RSP_UNACC unacceptable response
MMS_API_RSP_FINAL success response
MMS_API_RSP_FINAL_INTR intermediate response
MMS_API_RSP_FINAL_ERR error response
MMS_API_RSP_FINAL_CANC cancelled response
The mms_get_tree() macro returns the parse tree of the response.
The mms_get_str() macro returns the response string.
The mms_get_attribute() function takes a response with name values looking for name, and returning the value associated with it. A client
can call this function multiple times if the response contains multiple instances of name. When all occurrences of name have been found,
NULL is returned.
The mms_handle_err_rsp() function processes an error response on behalf of the client. It returns the error class, error code, and the
internationalized error message if one was included.
RETURN VALUES
Upon successful completion, mms_handle_err_rsp() returns MMS_API_OK. If it encounters a processing error, it returns an error code indicat-
ing the type of error.
ERRORS
These functions will fail if:
MMS_API_ERROR Unable to obtain error class or code.
MMS_API_NOT_ERR_RSP Response is not an error response.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Uncommitted |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
libmms(3LIB), mms_init(3MMS), mms_send_cmd(3MMS), attributes(5)
SunOS 5.11 28 Oct 2008 mms_rsp_type(3MMS)