05-07-2007
This is password change in LDAP environment, it makes temp files, writes into them, then removes them. In the end, it prints out a report whether the operation has succeeded or not.
EDIT : And please, do not cross-post, your quesion will be answered eventually, even if it's posted at one place. We are not working in your organization, hence we don't know the setup of the servers, so further information may be obtained from the local sys admin.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
Discussion started by: Aashish
2 Replies
2. UNIX for Advanced & Expert Users
HI,
Can anyone explain to me how does the following command work - >
current_dir=`cd \`/usr/bin/dirname $0\` && pwd`
Regards,
Ranga (3 Replies)
Discussion started by: r_W213
3 Replies
3. Shell Programming and Scripting
hi all
i wrote a shell script which uses perl script my code is :
>cat filename | while read i
>do
>perl -e 'require "/home/scripts/abc.pl" ; abc("$i")'
>done
perl script used will simply check syntax of Cobol programs but it didn't work for me so i asked my colleague he suggested... (1 Reply)
Discussion started by: zedex
1 Replies
4. Shell Programming and Scripting
can u explain this step by step........plz...will it do the same
for I in *.tar.gz; do
A=`basename $I .tar.gz`
mkdir $A
cp marking-guide ${A}/$A
cd $A
gunzip -c ../$I | tar xf -
cd..
done
thnx
__________________ (2 Replies)
Discussion started by: avikal
2 Replies
5. Shell Programming and Scripting
Hi all ,
please explain the following command :
perl -e 'select(undef,undef,undef,.15)'
Thanks and Regards
Navatha (2 Replies)
Discussion started by: Navatha
2 Replies
6. UNIX for Dummies Questions & Answers
Specifically what is the purpose of sed?
What is f?
Why is the 'cp f $phonefile' line needed when the script ‘goes live'?
Why might that two commands following sed be commented out at the present time ( i.e., during development)?
Thanks in... (2 Replies)
Discussion started by: knp808
2 Replies
7. Shell Programming and Scripting
Hi frnds,
one my frnds has given resolution for my problem as below. it working great , but i couldnt understand somethings in the script.
Why ++ operator after the function calling. how these each block working. will each run for each input line sequencially or one block for all the lines... (9 Replies)
Discussion started by: Gopal_Engg
9 Replies
8. Shell Programming and Scripting
CODE
file=/tmp/rap54ibs2sap.txt
trap "rm $file; exit" 0 1 2 3 15
trap
rm $file
execution result
trap -- 'rm /tmp/rap54ibs2sap.txt; exit' EXIT
trap -- 'rm /tmp/rap54ibs2sap.txt; exit' SIGHUP
trap -- 'rm /tmp/rap54ibs2sap.txt; exit' SIGINT
trap -- 'rm /tmp/rap54ibs2sap.txt;... (1 Reply)
Discussion started by: rrd1986
1 Replies
9. Shell Programming and Scripting
Hi Unix Gurus,
Please explain the processing done by the code mentioned below:
for (i=1;i<=59;i++)
{
sub(/ *$/,"", $i)
}
newrec_key = $2
new_line = $0
if (empty_oldfile==1)
{
#newly added record
++num_add
print "Added key: ", newrec_key > LogFile
#print out... (4 Replies)
Discussion started by: ustechie
4 Replies
10. Red Hat
su - keibatch -c ""date ; /usr/local/kei/batch/apb/bin/JKEIKYK4140.sh -run "&$C$6&" WSUKE100201""
Not clear about : date ; /usr/local/kei/batch/apb/bin/JKEIKYK4140.sh -run "&$C$6&" WSUKE100201
Please help (2 Replies)
Discussion started by: honda_city
2 Replies
LEARN ABOUT CENTOS
setup-ds.pl
SETUP-DS.PL(8) System Manager's Manual SETUP-DS.PL(8)
NAME
setup-ds.pl - Set up an instance of Directory Server
SYNOPSIS
setup-ds.pl [--options] -- [args]
DESCRIPTION
Set up a Directory Server instance. Creates the configuration files for an instance of Directory Server based on a few parameters like the
hostname, port number, and directory manager information. Can be run in interactive mode with different levels of verbosity, or in silent
mode with parameters supplied in a .inf format file or on the command line.
OPTIONS
A summary of options is included below:
--help This message
--version
Print the version and exit
--debug
Turn on debugging
--silent
Use silent setup - no user input
--file=name
Use the file 'name' in .inf format to supply the default answers
--keepcache
Do not delete the temporary .inf file generated by this program
--logfile
Log setup messages to this file - otherwise, a temp file will be used
--update
Update existing installations - add/update schema files, add/change configuration, add new instance scripts, etc. You must run set-
up-ds.pl -u after upgrading your packages. You will usually have to restart your servers in order for all of the changes to take
effect (e.g. adding/changing plug-in configuration), so schedule this when you can afford a little downtime.
--continue
(Update only) Keep going even if errors occur. You will usually not need to use this option unless your installation is broken and
you need to force it to update in order to fix it.
For all options, you can also use the short name e.g. -h, -d, etc. For the -d argument, specifying it more than once will increase the
debug level e.g. -ddddd
args: You can supply default .inf data in this format:
section.param=value
e.g.
General.FullMachineName=foo.example.com
or
"slapd.Suffix=dc=example, dc=com"
Values passed in this manner will override values in an .inf file given with the -f argument.
UPDATES
The update process (setup-ds.pl -u) can work in one of two modes:
Online: Configuration changes are made to the running directory servers using LDAP. The operations must be performed as an administrative
user. You must provide the name and password, for each instance if there is more than one instance of directory server. Some changes (e.g.
plug-ins) may require a directory server restart to take effect. The update script will notify you if a restart is required.
Offline: The changes are made to the server configuration files. The servers MUST FIRST BE SHUTDOWN BY YOU. The script will not shutdown
the servers for you. You MUST shutdown the servers in order to use this mode. A username and password are not required to use Offline
mode. If the servers are not shutdown, CHANGES WILL BE LOST.
To summarize:
Online - servers remain running - you must provide admin name and password for each server - servers may need to be restarted
Offline - servers must be shutdown - no username or password required
AUTHOR
setup-ds.pl was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2008 Red Hat, Inc.
This manual page was written by Michele Baldessari <michele@pupazzo.org>, for the Debian project (but may be used by others).
This is free software. You may redistribute copies of it under the terms of the Directory Server license found in the LICENSE file of this
software distribution. This license is essentially the GNU General Public License version 2 with an exception for plug-in distribution.
May 18, 2008 SETUP-DS.PL(8)