i am calling a pl/sql procedure through a shell script, there is one IN and 2 OUT parameter required to pass to the procedure to execute..
My procedure is XX_CITIDIRECT_EXP_PKG.main_proc and In parameter is p_period which I wanto to pass 'MAY-06'.
Can anyone figure out, whats is wrong here
... (4 Replies)
Hi all,
My script has 2 mandatory and 1 optional paramter. If the third parameter(optional) one is null the it should take a default value say 3. Can any one please write a simple code.
sh test.sh 1 2 3
var1=$1
var2=$2
if
then
var3=3
fi
echo " the third variable $var3"
... (1 Reply)
Hi,
I will pass 3 parameters for a script.I have to check the file name and create a new file name with time stamp.
the parameters which i'm passing are
/dir/stg/filename.txt
/dir/path/head.txt
/dir/path/tail.txt
Now i have to check filename like :
if it is a.txt i have to create... (2 Replies)
Hi Friends,
Urgently required to know this :
I have a file which has several stanzas like below :
CuDv:
name = "hdisk3"
status = 1
chgstatus = 2
ddins = "scdisk"
location = "03-08-01-11,0"
parent = "scsi1"
connwhere =... (3 Replies)
I have written a function that fills an array and another function where if a parameter is supplied it will jump to that part of the array and cat it to the screen.
I need to put in some checks to make sure the parameter supplied is firstly a number and then not a number great than the length of... (2 Replies)
Hi,
File contains with TAB delimeter file,i want check the 2,3 are not null
test1@gmail.com 100 test
test2@gmail.com 101 test
test3@gmail.com test
test4@gmail.com 102
OUTPUT
test1@gmail.com 100 test
test2@gmail.com 101 test
Please help me with one single command in... (2 Replies)
Hello Experts,
File contains 10 columns with | delimeter. 1,3,4,5,7,9 columns are required columns means it should contains values.
i need those records, rest of it will contain or not contain data.
test1.txt:
a@a.com|a|b|c|d|e|f|g|h|i
|a|b|c|d|e|f|g|h|i
b@b.com|a||c|d|e|f|g|h|i... (7 Replies)
I need to check if the parameters are correctly passed based on the Environment I am in.
For e.g when I am in dev the 1st paramter needs to be either A OR B OR C OR D
similarly when I am in qa the parameter needs to be either e or f
so i need to write a case staement or a if statement to... (1 Reply)
I've got scripts trawling the network and dumping parsed text into files with an Epoch timestamp in column 1. I append the old data to the new data then just want to keep the top entry if there is an identical duplicate below (column 1 needs to be ignored).
sort -ur +1 works a treat on a Solaris... (16 Replies)
Hi,
I need to write a shell script where I need to check whether log file is generated in last 1 hour or not. But I am getting below error in using mmin or cmin parameter with find command:
find: bad option -mmin
find: bad option -cmin
So my concern is that any alternative for mmin option... (5 Replies)
Discussion started by: Ankit Srivastav
5 Replies
LEARN ABOUT OPENSOLARIS
getauditflags
getauditflags(3BSM) Security and Auditing Library Functions getauditflags(3BSM)NAME
getauditflags, getauditflagsbin, getauditflagschar - convert audit flag specifications
SYNOPSIS
cc [ flag... ] file... -lbsm-lsocket-lnsl [ library... ]
#include <sys/param.h>
#include <bsm/libbsm.h>
int getauditflagsbin(char *auditstring, au_mask_t *masks);
int getauditflagschar(char *auditstring, au_mask_t *masks, int verbose);
DESCRIPTION
The getauditflagsbin() function converts the character representation of audit values pointed to by auditstring into au_mask_t fields
pointed to by masks. These fields indicate which events are to be audited when they succeed and which are to be audited when they fail. The
character string syntax is described in audit_control(4).
The getauditflagschar() function converts the au_mask_t fields pointed to by masks into a string pointed to by auditstring. If verbose is
0, the short (2-character) flag names are used. If verbose is non-zero, the long flag names are used. The auditstring argument should be
large enough to contain the ASCII representation of the events.
The auditstring argument contains a series of event names, each one identifying a single audit class, separated by commas. The au_mask_t
fields pointed to by masks correspond to binary values defined in <bsm/audit.h>, which is read by <bsm/libbsm.h>.
RETURN VALUES
Upon successful completion, getauditflagsbin() and getauditflagschar() return 0. Otherwise they return -1.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO bsmconv(1M), audit.log(4), audit_control(4), attributes(5)BUGS
This is not a very extensible interface.
NOTES
The functionality described on this manual page is available only if the Solaris Auditing has been enabled. See bsmconv(1M) for more
information.
SunOS 5.11 31 Mar 2005 getauditflags(3BSM)