Find Jobs
Hire Freelancers

106277 Fix this perl script function

N/A

Opravljeno
Objavljeno pred več kot 17 leti

N/A

Plačilo ob dostavi
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!
ID projekta: 1852446

Več o projektu

1 ponudba
Projekt na daljavo
Aktivno pred 12 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
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 v 1 dnevu
4,9 (104 ocen)
5,7
5,7

O stranki

Zastava UNITED STATES
Folsom, United States
5,0
48
Plačilna metoda je verificirana
Član(ica) od jul. 23, 2006

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.