Hi
I am trying to run a SQL statement from a unix script determined at runtime.
It is throwing me an error. Please advise some solution to this.
echo "Enter username for the database"
read username
echo "Enter password for the database"
read password
echo "Enter SQL stmt"
read... (4 Replies)
hi all,
need help with putting names in an array, i have a few servers which i look up by doing a 'find . -name "*.pid' and the format of the output is like following :
./servername/myserver.pid
i was wondering how can i iterate through and store each name in one array
my code is... (1 Reply)
I was wondering if ksh supported arrays. I have a script that may work with several hosts. I'd like a means of knowing how many hosts I'm working with and an easy way to access them (as variables) in a loop. I'm assuming there's some kind of foreach in shell scripting. (1 Reply)
Hi Perl folks,
I am having problems printing elements from an array at runtime.
I wish to push elements into array at runtime and the print it later.
Now I wish to print this matrix using colors.
So I do something like this to enter the runtime values in array:
... (1 Reply)
The following command is only intermittently successful, depends on the data I give it:
set -A ImageShifts_sorted `awk '/START_SECTION IMAGE_DEFINITION/ {getline;getline;getline;getline; print $2"-"$3}' temp.ASCII | sort -u`
My Error:
set: -1: unknown option
Finally, If I run that... (3 Replies)
Hi All,
My Requirement is as follows:
1. User will input Source Sytem Code as input.
2. I have source system codes as 11, 34, 56, 99, 45 etc.
OS Version: SunOS 5.8 Generic_117350-62 sun4u sparc SUNW,Sun-Fire-V890
My code is like...
echo 'Source System Code: \c'
read varSSCode... (3 Replies)
Hi Guys,
My code is something like this
set -A A1 1 7 13 19
set -A A2 2 8 14 20
set -A A3 3 9 15 21
echo "Enter a number"
read number
for i in 0 2 3 4
do
if }" ]
then
do something
elif }" ]
then
do something
elif }" ]
then
do something (4 Replies)
I am trying to check whether particular host and port are responding or not. I am using below script to check. but node_port array that i am using in loop is getting replaced with previous iteration value. Script and output is given.
Please help me to understanding why node_port values are... (5 Replies)
Discussion started by: tmalik79
5 Replies
LEARN ABOUT OPENSOLARIS
mlib_videocolormerge4
mlib_VideoColorMerge4(3MLIB) mediaLib Library Functions mlib_VideoColorMerge4(3MLIB)NAME
mlib_VideoColorMerge4 - color conversion (color channel merge)
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_VideoColorMerge4(mlib_u8 *colors, const mlib_u8 *color1,
const mlib_u8 *color2, const mlib_u8 *color3, const mlib_u8 *color4,
mlib_s32 n);
DESCRIPTION
The mlib_VideoColorMerge4() function performs color channel merge.
PARAMETERS
The function takes the following arguments:
colors Pointer to colors multi-component row. colors must be 8-byte aligned.
color1 Pointer to first color component row. color1 must be 8-byte aligned.
color2 Pointer to second color component row. color2 must be 8-byte aligned.
color3 Pointer to third color component row. color3 must be 8-byte aligned.
color4 Pointer to fourth color component row. color4 must be 8-byte aligned.
n Length of color1, color2, color3, and color4 arrays. Length of colors must be 4*n.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_VideoColorMerge2(3MLIB), mlib_VideoColorMerge2_S16(3MLIB), mlib_VideoColorMerge3(3MLIB), mlib_VideoColorMerge3_S16(3MLIB), mlib_Video-
ColorMerge4_S16(3MLIB), mlib_VideoColorSplit2(3MLIB), mlib_VideoColorSplit2_S16(3MLIB), mlib_VideoColorSplit3(3MLIB), mlib_VideoColor-
Split3_S16(3MLIB), mlib_VideoColorSplit4(3MLIB), mlib_VideoColorSplit4_S16(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_VideoColorMerge4(3MLIB)