On Sat, Oct 11, 2003 at 11:27:40AM +0800, [EMAIL PROTECTED] wrote: > Dear Brain . > I had been create a new ldapsearch wrapper scripts with : > exec /usr/bin/ldapsearch -x -l 60 -z 20 "$@" > date >> /tmp/ldapsearch.out > echo "$@" >> /tmp/ldapsearch.out > set >> /tmp/ldapsearch.out > > Also i had been running chmod +x OR chmod 777 ldapsearch . > > But it seems that there seems get the empty list . > Do you think that there i have something is missing ?
1. Please don't reply to me personally, reply to the list. 2. Please copy the exact script that I posted before The script you have written above starts with "exec". This means "replace the current process with ldapsearch (terminating the shell)". As a result, the subsequent commands will *never* run. You should take ldapsearch itself out of the equation, which is why I suggested that the script should simply log its arguments into /tmp; then you can prove whether the problem is that sqwebmail is not running the script, or that ldapsearch is at fault. Brian. > > Thanks . > > From Data Leung > > >On Fri, Oct 10, 2003 at 05:24:55PM +0200, Uros Slak wrote: > >>I believe that the problem is that the ldapsearch wrapper script is not > >>even > >>executed but I dont know how to debug further! > > > >Replace the script with > > > >#!/bin/sh > >date >> /tmp/ldapsearch.out > >echo "$@" >> /tmp/ldapsearch.out > >set >> /tmp/ldapsearch.out > > > >(remember to chmod +x) and see if it creates a file. If so, see if it > >contains what you expect. > > > >Regards, > > > >Brian. > > >
