Hi all,
I am trying to create a shell script from solaris 10 server to run a command into multiple specific value in one file. The command is related to Oracle/Sun JES2005Q4 directory server.
#this is the command,
#from path /jes/ds/slapd-rldap1
./ns-inactivate.pl -h mldap1 -p 389 -D "cn=Directory Manager" -w admin123 \-I "uid=anyname_in_file,ou=People,o=anydomain.com,o=isp"
example for well execute command:
./ns-inactivate.pl -h mldap1 -p 389 -D "cn=Directory Manager" -w admin123 \-I "uid=ris1,ou=People,o=solarisX.com.ru,o=isp"
#this is the file, however I only need the command to run for every username only, such as:
admin,ris1,ris2,ris3,ris4,str1,str2,str3,str4,tg1,tg2,tg3,tg4,tmnet1,tmnet2,tmnet3,tmnet4
-bash-3.00# more 30days.out
user/admin/INBOX
user/ris1@iris.net/INBOX
user/ris2@iris.net/INBOX
user/ris3@iris.net/INBOX
user/ris4@iris.net/INBOX
user/str1@streamyx.com/INBOX
user/str2@streamyx.com/INBOX
user/str3@streamyx.com/INBOX
user/str4@streamyx.com/INBOX
user/tg1@titangroup.com/INBOX
user/tg2@titangroup.com/INBOX
user/tg3@titangroup.com/INBOX
user/tg4@titangroup.com/INBOX
user/tmnet1/INBOX
user/tmnet2/INBOX
user/tmnet3/INBOX
user/tmnet4/INBOX
-any other idea to simplify the process are accepted as long as the objective is the same.
-the objective to use the shell script is to run the command against all username in one file, take note that we may run the shell script more than once because I got 5 different domains for all the users in the file.