Find Jobs
Hire Freelancers

106277 Fix this perl script function

N/A

Terminado
Publicado hace más de 17 años

N/A

Pagado a la entrega
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 del proyecto: 1852446

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
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 en 1 día
4,9 (104 comentarios)
5,7
5,7

Sobre este cliente

Bandera de UNITED STATES
Folsom, United States
5,0
48
Forma de pago verificada
Miembro desde jul 23, 2006

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.