Find Jobs
Hire Freelancers

Perl Net::FTP Retry Code Needed

$10-30 USD

Concluído
Publicado há mais de 9 anos

$10-30 USD

Pago na entrega
I need this code rewritten to retry 3 times waiting longer each on fail. Before each retry it shall print an update. This is needed because during busy times and bad connections the connecting or putting of the file fails sometimes. If fail, wait 10 seconds and try again. (print "Waiting 10 seconds to Retry") If fail a second time wait 15 seconds and try again. (print "Waiting 30 seconds to Retry") If fail a third time, wait 60 more seconds and try again a final time.(print "Waiting 60 seconds to Retry") If fails a fourth time, print error. $ftp = Net::FTP->new($spr_host_name, Timeout => 30, Passive => 1, Debug => 1,) or die print "\n Can not connect to SPR: $@<br>--FTP Down-- \n"; >>>>>>>>>>>>>> RETRY ABOVE LINE $ftp->put($local_file,$remote_file) or die print "Couldn't Send EDI Request to SPR! $@\n"; >>>>>>>> RETRY ABOVE LINE ----------------------------------------------------------------------- here is the block of perl code. (using Net::Ftp) $ftp = Net::FTP->new($spr_host_name, Timeout => 30, Passive => 1, Debug => 1,) or die print "\n Can not connect to SPR: $@<br>--FTP Down-- \n"; $ftp->login($ftp_login_name,$ftp_login_pass) or die print "Couldn't Login $@\n"; $ftp->put($local_file,$remote_file) or die print "Couldn't Send EDI Request to SPR! $@\n"; print "putting $local_file -to- $remote_file\n"; $ftp->rename($remote_file,$remote_file2) or die print "Couldn't Rename $@\n"; ------------------------------------------------------------------------------ No access to our servers will be given. Please provide the tested and finished block of code in a text file attachment.
ID do Projeto: 6470509

Sobre o projeto

10 propostas
Projeto remoto
Ativo há 10 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hi nehiac, I got a membership and now have bids. I can complete this work within a day. Thanks Raj
$25 USD em 1 dia
5,0 (1 avaliação)
0,6
0,6
10 freelancers estão ofertando em média $26 USD for esse trabalho
Avatar do Usuário
Hi! This is pretty easy for me: I can provide you code you need in less than 10 minutes. Just make 100% milestone payment and you'll get working code from me. Thanks. Roman
$29 USD em 1 dia
5,0 (194 avaliações)
6,2
6,2
Avatar do Usuário
Hello, I am the premier Perl scripting expert on these freelancing sites. I will modify your Perl script fragment to include the retry protocols that you specify. The retries will be governed by a list structure for you to configure the waiting times. If I am hired for this task before 3:00 pm EDT today, your script shall be ready before midnight that night. A milestone payment for the full budget for your task must be deposited with this site before your offer can be accepted. Alan Idler Chief Software Architect Idleswell Software Creations
$27 USD em 3 dias
4,9 (182 avaliações)
6,1
6,1
Avatar do Usuário
Hi, We are experts in perl and can write the ftp connect strip as you described. Ready to start now. Thanks.
$26 USD em 1 dia
5,0 (99 avaliações)
5,6
5,6
Avatar do Usuário
hello, I can update the script to support retry on failure for you..............................................................
$30 USD em 1 dia
5,0 (31 avaliações)
5,4
5,4
Avatar do Usuário
Dear potential employer. Follows the code fragment, modified at your request. I hope it will work fine for you. In case of complete satisfaction, please, accept my bid, for me to be able to leave 5-star feedback for you. Please, let me know if you would like to make any further modifications (for example I would strongly advice you to use strict pragma). Looking forward for update from you. Thank you my @delay_periods = qw/ 0 10 30 60 /; my $ftp; foreach my $delay (@delay_periods){ sleep($delay); print "Waiting $delay seconds to Retry\n" if $delay; eval{ $ftp = Net::FTP->new($spr_host_name, Timeout => 30, Passive => 1, Debug => 1,); }; last unless $@; die print "\n Can not connect to SPR: $@<br>--FTP Down-- \n" if $delay == $delay_periods[$#delay_periods]; } $ftp->login($ftp_login_name,$ftp_login_pass) or die print "Couldn't Login $@\n"; foreach my $delay (@delay_periods){ sleep($delay); print "Waiting $delay seconds to Retry\n" if $delay; eval{ $ftp->put($local_file,$remote_file); }; unless($@){ print "putting $local_file -to- $remote_file\n"; last; } else{ die print "Couldn't Send EDI Request to SPR! $@\n" if $delay == $delay_periods[$#delay_periods]; } } $ftp->rename($remote_file,$remote_file2) or die print "Couldn't Rename $@\n";
$25 USD em 1 dia
4,9 (12 avaliações)
4,8
4,8
Avatar do Usuário
Hi I have experience of more than four years. My expertise is in c cpp Linux and perl. I have already modify many standard perl project for custom requirement. I can do this job
$25 USD em 1 dia
5,0 (1 avaliação)
2,3
2,3
Avatar do Usuário
can do it........................................................................................................................................
$25 USD em 1 dia
5,0 (4 avaliações)
2,0
2,0
Avatar do Usuário
PERL (MVC Catalyst), jquery (javascript), git, sql (mysql, pgsql), php, junior ruby ​​(ruby on ralis), freebsd/linux Experience of more than 6 years of Perl + jQuery + FreeBSD Engines: Xfilesharing (sibsoft), OTRS
$16 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
Post Falls, United States
5,0
13
Método de pagamento verificado
Membro desde jul. 27, 2013

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.