Please provide a bash script for following description
i have ldapsearch command, the script should execute my ldapsearch command and get into loop till i kill the shell script, it should run ldapsearch command every sec and produce a log file when the ldapsearch commands fails.
I will setup a cron job to execute the bash script. The OS is Linux
ldapsearch -h abc -p 555 -D "cn=kaka,ou=ttt,ou=papa,o=company" -w "xyz" -b "ou=ttt,ou=papa,o=company" -s sub "(cn=abc)"
please provide a script