|
sorry - just having a difficult time explaining this mess....
What i would like is:
For each suffix in the ldaplist file -
To run an ldap search command
And then grep for 'ibm-replicationState=ready '
If there is a match - do nothing, if not, then send an email.
What I'm getting is only one email, and in the body of the email are the other suffixes in my ldaplist file.
For instance here is what the body of the email would look like
-----
o=group b
o=group c
-----
So it looks like it runs - but gets triggered on just one of the list items. In this case - o=company a. When i switch the script to do an echo 'echo $i' rather than the mailx statement i get
--------
ibm-replicationState=ready
o=company a
ibm-replicationState=ready
o=company b
---------
I can skip all of the loops - just thought it would be cool to figur it out.
|