07-22-2009
Thanks KSHJI.. it was helpful
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a doubt in the way the variables inside a function are treated .
if a function is called from the main script directly, the variables inside them act as global variables.
however if the return value of the function is stored to some other variable in the main script as shown,... (3 Replies)
Discussion started by: prez
3 Replies
2. Programming
I have the following simple code to return a binary number in a array format given an interger and the number of the bits for specifying the interger as binary number.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
// int* get_binary_number(int* bit_array, int num, int... (8 Replies)
Discussion started by: return_user
8 Replies
3. Shell Programming and Scripting
how to return value from function and print from main program???
And also I need to return true or false... Is it possible? (5 Replies)
Discussion started by: darshakraut
5 Replies
4. Shell Programming and Scripting
I have write a shell function to get the maximum of a vector.
However, the returned value from the function is not always
the correct one.
Here is the script:
maxval()
{
local max j i size arrval
size=$1 ; shift
max=-999999999
i=0
while
do
arrval="$1"
if
then
... (5 Replies)
Discussion started by: fl0r10
5 Replies
5. Shell Programming and Scripting
I am using ksh. I want to know how can we make any function to return string or double value.
I dont want to use the global variables. (5 Replies)
Discussion started by: PRKS
5 Replies
6. Shell Programming and Scripting
I have two scripts. script1.sh looks
--------------------------------
#!/bin/bash
display()
{
echo "Welcome to Unix"
}
display
-----------------------------
Script2.sh
#!/bin/bash
sh script1.sh //simply calling script1.sh
------------------------------ (1 Reply)
Discussion started by: mvictorvijayan
1 Replies
7. Shell Programming and Scripting
hello friends,
i have written one perl script.Which opens a file and search for some parameter's value and gets the status of these parameters. but while i am trying to return these value always i am getting false. Can any one please help me..
here is that function:
=======================... (5 Replies)
Discussion started by: harpal singh
5 Replies
8. Shell Programming and Scripting
Hi,
I have an issue converting decimal places of a particular column, i am using below script to get the output, but the output is not generating in desired format.
awk -F"," 'BEGIN{OFS=","}{if(NR==0)getline;if ($7 != "") {if ($7 > 0) $7=$7/100 ; {printf "%.2f"... (3 Replies)
Discussion started by: rramkrishnas
3 Replies
9. Shell Programming and Scripting
Not sure where the problem is. I can run the script without any issue using the following command.
. /opt/app/scripts/cdc_migration.sh
But it fails with the below error when I try it this way
/opt/app/scripts/cdc_migration.sh
/opt/app/scripts/cdc_migration.sh: line 65: return: can only... (1 Reply)
Discussion started by: svajhala
1 Replies
10. Shell Programming and Scripting
Hi All,
Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition.
#Body
function1()
{
if
then
echo "exist"
else
echo "not exist"
}
#if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies
LEARN ABOUT OSX
slapo-syncprov
SLAPO-SYNCPROV(5) File Formats Manual SLAPO-SYNCPROV(5)
NAME
slapo-syncprov - Sync Provider overlay to slapd
SYNOPSIS
/etc/openldap/slapd.conf
DESCRIPTION
The Sync Provider overlay implements the provider-side support for the LDAP Content Synchronization (RFC4533) as well as syncrepl replica-
tion support. The overlay can be used with any backend that maintains entryCSN and entryUUID attributes for its entries. It also creates a
contextCSN attribute in the root entry of the database.
The contextCSN is updated for every write operation performed against the database. To reduce database contention, the contextCSN is only
updated in memory. The value is written to the database on server shutdown and read into memory on startup, and maintained in memory there-
after. Checkpoints may be configured to write the contextCSN into the underlying database to minimize recovery time after an unclean shut-
down.
On databases that support inequality indexing, it is helpful to set an eq index on the entryCSN attribute when using this overlay.
CONFIGURATION
These slapd.conf options apply to the Sync Provider overlay. They should appear after the overlay directive.
syncprov-checkpoint <ops> <minutes>
After a write operation has succeeded, write the contextCSN to the underlying database if <ops> write operations or more than <min-
utes> time have passed since the last checkpoint. Checkpointing is disabled by default.
syncprov-sessionlog <ops>
Configures an in-memory session log for recording information about write operations made on the database. The <ops> specifies the
number of operations that are recorded in the log. All write operations (except Adds) are recorded in the log. When using the ses-
sion log, it is helpful to set an eq index on the entryUUID attribute in the underlying database.
syncprov-nopresent TRUE | FALSE
Specify that the Present phase of refreshing should be skipped. This value should only be set TRUE for a syncprov instance on top of
a log database (such as one managed by the accesslog overlay). The default is FALSE.
syncprov-reloadhint TRUE | FALSE
Specify that the overlay should honor the reloadHint flag in the Sync Control. In OpenLDAP releases 2.3.11 and earlier the syncrepl
consumer did not properly set this flag, so the overlay must ignore it. This option should be set TRUE when working with newer
releases that properly support this flag. It must be set TRUE when using the accesslog overlay for delta-based syncrepl replication
support. The default is FALSE.
FILES
/etc/openldap/slapd.conf
default slapd configuration file
SEE ALSO
slapd.conf(5), slapd-config(5), slapo-accesslog(5). OpenLDAP Administrator's Guide.
ACKNOWLEDGEMENTS
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from Uni-
versity of Michigan LDAP 3.3 Release.
OpenLDAP 2.4.28 2011/11/24 SLAPO-SYNCPROV(5)