Find Jobs
Hire Freelancers

106277 Fix this perl script function

N/A

Færdiggjort
Slået op over 17 år siden

N/A

Betales ved levering
Currently one website that I run uses a perl based CMS system. It does not save any information to databases but it stores everything to flat files. As the traffic has increased on my site, I have often seen that the files that are accessed more often and written to more often get "truncated". So for example a data file that has a list of pictures in it and that keeps track of how many times each picture has been accessed, might get "cut in half" all of a sudden. I believe the problem lies in the flocking functions that I'm using. Each time any file is opened with my site it uses the following function. use Fcntl ':flock' ############################## sub lock { flock(MBOX,LOCK_EX) # and, in case someone appended # while we were waiting... seek(MBOX, 0, 2) } sub unlock { flock(MBOX,LOCK_UN) } ############################## (semi-colons were left out) What I'm looking for is someone who can improve this function to ensure that files are no longer lost / truncated / corrupted / deleted on my server. My guess is that this would only take an expert programmer a few minutes. Please PM me with your code, and I'll test it, if it works and your price is right, you'll get the project. Thanks so much for your time and help!
Projekt-ID: 1852446

Om projektet

1 forslag
Projekt på afstand
Aktiv 12 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
Tildel til:
Brug Avatar.
Hello, I have a correction to your locking function to apply to all your scripts within a day. Scriptlance escrow required. - A IDLER
$29 USD på 1 dag
4,9 (104 anmeldelser)
5,7
5,7

Om klienten

Flag for UNITED STATES
Folsom, United States
5,0
48
Betalingsmetode verificeret
Medlem siden jul. 23, 2006

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.