On Mon, Feb 19, 2007 at 10:41:43AM +1100, Howard Lowndes wrote:
> 
> 
> Amos Shapira wrote:
> >On 19/02/07, Howard Lowndes <[EMAIL PROTECTED]> wrote:
> >>
> >>This is out of the script that I an calling from cron:
> >>
> >>ldapdelete -x -D uid=admin,dc=$DB -w secret
> >>cn=nospam$MONTH_NOW,ou=valias,dc=$DB &1>/dev/null &2>1
> >>
> >>and this is the outout I get:
> >>
> >>ldap_delete: No such object (32)
> >>         matched DN: ou=valias,dc=lannet.com.au
> >
> >
> >Replace everything after the "&1>..." with "> /dev/null 2>&1" and see what
> >happens.
> >Replace "/dev/null" with a plain file for testing just to make sure that 
> >the
> >output goes where it's supposed to go.
> >I assume it's Bourne (Agian?) Shell.
> 
> Yep, bash; and no dice - no change...
> 
> A further complication is that when I do STDIN redirection in ldapadd - 
> ala <<EOF  trying to do STDOUT and ERROUT redirects as well causes the 
> STDIN redirection to fail.
> 

maybe try 

{
 your ldap suff
} > /dev/null


> 
> >
> >--Amos
> 
> -- 
> Howard.
> LANNet Computing Associates - Your Linux people <http://lannetlinux.com>
> When you want a computer system that works, just choose Linux;
> When you want a computer system that works, just, choose Microsoft.
> --
> Flatter government, not fatter government; abolish the Australian states.
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 

Attachment: signature.asc
Description: Digital signature

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to