When running the program I get a output error due to the ldapmodify command is trying to update and existing field, as shown below:#-----Running LDAPMODIFY Against The Ldif File Created-----# sub RunUpdate { print "--Updating Directory server. Please wait for a moment....\n +\n"; my $resultLdapSearch = `ldapmodify -h $ldap_server -D "cn=Director +y Manager" -w $dir_mgr_pwd -f $ldap_modify_file`; #print "resultLdapSearch: $resultLdapSearch\n"; }
As you notice, the error "ldap_modify_s: Type or value exists" appears from the "ldapmodify" that I executed. I need to know how do I capture this value and once I find out, I will write some codes to handle this error. Please advice.bash-2.05# perl 4-run_update_attributes.pl ********************************************************************** +******* Step #4 - The Script WILL NOW Update The Users "Company" and "Co" Attr +ibutes ********************************************************************** +******* Do you want to continue [y]: --Updating Directory server. Please wait for a moment.... ldap_modify_s: Type or value exists ********************************************************************** +* See Result: ----------- Log Output file (verified): 01152008.log ********************************************************************** +*
In reply to How to capture error messages... by fabster01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |