06-07-2011
I'm sorry, How to calculate the lowest 8 bits of any given number? Any pointers on this? Thanks in advance....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I wrote a shell script to call oracle procedure. But when i am trying to connet sqlplus with the fallowing statement It is giving me error " callproce.sh : sqlplus: not found". What could be the problem.
sqlplus -s $CONNECT_STRING >$LOGFILE <<!!
thank u all
papachi (2 Replies)
Discussion started by: papachi
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
Iam calling 3 sql scripts through one shell script 'rmia.sh'.
Till now this was working fine, but last time while calling the SQL scripts,
Oracle was down. But amazingly the exit status was '0' (success)!!!
Below is the shell code:
#!/usr/bin/ksh -x
assign_file asql a.sql 1... (15 Replies)
Discussion started by: ganapati
15 Replies
3. UNIX for Advanced & Expert Users
Hi All,
Please check the below ftp related job, which is deleting the files from remote host. Problem is it is not capturing the ftp failure error, and the exit status is still '0' eventhough the deletable files are not present in remote location OR ftp credential are incorrect.
... (5 Replies)
Discussion started by: ganapati
5 Replies
4. Shell Programming and Scripting
I am running a script that invokes SQLPLUS. During the execution I get the following:
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Jun 11 16:12:50 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 -... (3 Replies)
Discussion started by: ssmith001
3 Replies
5. Shell Programming and Scripting
Hello All,
I have searched the thread for capturing and got some suggestion but that is not working for me.
I am trying to sftp to a window server from unix server and getting file there with out any issue .But i wan't to capture the error --in case a file is not exist in remote.
Example :... (1 Reply)
Discussion started by: jambesh
1 Replies
6. Shell Programming and Scripting
HELLO,
I am using such a command to write oracle sqlplus query result to text file:
sqlplus -S xxx/xxx@xxxxxxx @\tmp\2.sql>\tmp\123.txt
Is it possible to script that:
If command succesfull write in \tmp\log.txt:
timestamp and "succeded"
and create 123.txt with results
else
If error... (2 Replies)
Discussion started by: tomasba
2 Replies
7. Shell Programming and Scripting
HI,
I have a source file which has the below data.
Tableid,table.txt
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6
Tableid,table
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6
Tableid,table.txt
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6
Tableid,table
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6... (6 Replies)
Discussion started by: shruthidwh
6 Replies
8. Shell Programming and Scripting
My issue pertains to earlier posts like
exit unix script after sqlerror in procedure - dBforums
SQLPLUS Error Capturing | Unix Linux Forums | Shell Programming and Scripting
We are executing PL/SQL blocks from shell scripts using SQLPLUS. The error code has to be captured into a logfile that... (3 Replies)
Discussion started by: jerome_rajan
3 Replies
9. Shell Programming and Scripting
i am using bash shell
Whenever i declare an array, and then using sqlplus, i am getting sqlplus error and return code 127.
IFS=","
declare -a Arr=($Variable1);
SQLPLUS=sqlplus -s "${DBUSER}"/"${DBPASS}"@"${DBASE}
echo "set head off ; " > ${SQLCMD}
echo "set PAGESIZE 0 ;" >> ${SQLCMD}... (6 Replies)
Discussion started by: arghadeep adity
6 Replies
10. Shell Programming and Scripting
Hi,
I have been using the SFTP commands in my reusable shell scripts to perform Get/Put operation. The script has a list of 6 errors which i am capturing through the log file using grep command.
But I feel there might me more errors which the script might need to capture. I tried to capture the... (2 Replies)
Discussion started by: Bobby_2000
2 Replies
LEARN ABOUT OPENSOLARIS
mlib_videocolorrgbxint_to_abgrint
mlib_VideoColorRGBXint_to_ABGRint(3MLIB) mediaLib Library Functions mlib_VideoColorRGBXint_to_ABGRint(3MLIB)
NAME
mlib_VideoColorRGBXint_to_ABGRint - convert RGBX interleaved to ABGR interleaved
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
void mlib_VideoColorRGBXint_to_ABGRint(mlib_u32 *ABGR,
const mlib_u32 *RGBX, const mlib_u8 *A_array,
mlib_u8 A_const, mlib_s32 w,
mlib_s32 h, mlib_s32 dlb,
mlib_s32 slb, mlib_s32 alb);
DESCRIPTION
The interleaved RGBX stream and the alpha values are combined into an interleaved A, B, G, R output stream. Within each 32-bit input pixel,
the component ordering is R (bits 31-24), G (bits 23-16), and B (bits 15-8). Within each 32-bit output pixel, the component bordering is A
(bits 31-24), B (bits 23-16), G (bits 15-8), and R (bits 7-0). The alpha values for this function work in the following fashion: if A_array
is not NULL, the values are taken from the corresponding locations in the alpha array, otherwise a constant alpha value, specified by
A_const, is store in each output pixel. Each element in the alpha array is an unsigned byte. w and h define the dimensions of the region of
the buffers to be processed. The linebyte parameters are used to advance the data pointers for each of the buffers.
PARAMETERS
The function takes the following arguments:
ABGR Pointer to output buffer (word-aligned).
RGBX Pointer to input buffer (word-aligned).
A_array Pointer to array of alpha values (byte-aligned).
A_const Constant alpha value (range = 0..255).
w Image width in pixels.
h Image height in lines.
dlb Linebytes for output buffer.
slb Linebytes for input buffer.
alb Linebytes for alpha buffer.
RETURN VALUES
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_VideoColorRGBseq_to_ABGRint(3MLIB), mlib_VideoColorRGBint_to_ABGRint(3MLIB), mlib_VideoColorBGRint_to_ABGRint(3MLIB), mlib_VideoColor-
RGBXint_to_ARGBint(3MLIB), mlib_VideoColorXRGBint_to_ABGRint(3MLIB), mlib_VideoColorXRGBint_to_ARGBint(3MLIB), attributes(5)
SunOS 5.11 2 Mar 2007 mlib_VideoColorRGBXint_to_ABGRint(3MLIB)