[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Weird happenings with PERL script and cron
"David Morris" <david [at] allvac.co.uk> wrote:
> I've got a PERL script that runs on one of our servers which rebuilds our
> LDAP database.
>
> Basically, the job runs as root from CRON. When it runs under cron, the last
> file ("/tmp/ldap-entries") gets missed off and not built in to the address
> book (which is what we use LDAP for). If I run the job from command line,
> the last file isn't included.
Wild stab in the dark, but it may be that you're not doing close(LDAP)
before doing system(....),
which means that the output may still be buffered and not actually
written to the file yet.
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.