Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Compare Two Files, Merge Updates from One File to the Other

by strat (Canon)
on May 04, 2009 at 10:38 UTC ( [id://761693]=note: print w/replies, xml ) Need Help??


in reply to Compare Two Files, Merge Updates from One File to the Other

It is easier and more secure to parse the employee data file set by set, search for the username in a directory server (not an LDIF file) and do updates on the fly:

If you export a file, modify it and import it again, you waste time in which other people or jobs may have changed the data (if no other jobs are yet manipulating the data, it may happen in future). So keep the time a modify takes as short as possible => do online updates. And for importing the data again, a script that does updates instead of delete/add is necessary. so why not enhancing this script with the search?

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

  • Comment on Re: Compare Two Files, Merge Updates from One File to the Other

Replies are listed 'Best First'.
Re^2: Compare Two Files, Merge Updates from One File to the Other
by rycher (Acolyte) on May 04, 2009 at 12:50 UTC
    Hmm...doing updates on the fly is a great idea. I will have to investigate the perl-LDAP modules and see if that will be feasible. Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://761693]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found