Net::FTP prob

--===============0441206627==
Content-Type: multipart/alternative; boundary="0-2018504356-1182501746=:44822"
Content-Transfer-Encoding: 7bit

--0-2018504356-1182501746=:44822
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I am using Net::FTP to "put" files from a local dir to a folder on a se=
rver using
$ftp->put (<filename>), where $fth is an obj of Net::FTP.

But it seems "put" doesnt overwrite any existing files, if they are alr=
eady present on the server. How do I overwrite files on the server forcib=
ly by using Net::FTP??

Best,
Ukh



---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
--0-2018504356-1182501746=:44822
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<div>Hi,</div> <div> </div> <div>I am using Net::FTP to "put" file=
s from a local dir to a folder on a server using </div> <div>$ftp->pu=
t (<filename>), where $fth is an obj of Net::FTP.</div> <div> =
;</div> <div>But it seems "put" doesnt overwrite any existing files, if =
they are already present on the server. How do I overwrite files on the s=
erver forcibly by using Net::FTP??</div> <div> </div> <div>Best,</=
div> <div>Ukh</div> <div> </div><p>
<hr size=3D1>Moody friends. Drama queens. Your life? Nope! - their =
life, your story.<br> <a href=3D"http://us.rd.yahoo.com/evt=3D48224/*http=
://sims.yahoo.com/">Play Sims Stories at Yahoo! Games. </a>
--0-2018504356-1182501746=:44822--

--===============0441206627==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0441206627==--
ukhas jean [ Fr, 22 Juni 2007 10:42 ] [ ID #1746190 ]

RE: :FTP prob

From: activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of ukhas
jean
Sent: 22 June 2007 09:42
To: Active Perl
Subject: Net::FTP prob

> Hi,
> =

> I am using Net::FTP to "put" files from a local dir to a folder on a
server using =

> $ftp->put (<filename>), where $fth is an obj of Net::FTP.
> =

> But it seems "put" doesnt overwrite any existing files, if they are
already present on the server. How do I =

> overwrite files on the server forcibly by using Net::FTP??

Works fine for me. Does your user have permission to overwrite those
files on the server?

HTH

-- =

Brian Raven =


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Atos Euronext Market Solutions Disclaimer
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The information contained in this e-mail is confidential and solely for the=
intended addressee(s). Unauthorised reproduction, disclosure, modification=
, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediat=
ely and delete it from your system. The views expressed in this message do =
not necessarily reflect those of Atos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales with=
registration no. 3962327. Registered office address at 25 Bank Street Lon=
don E14 5NQ United Kingdom. =

Atos Euronext Market Solutions SAS - Registered in France with registration=
no. 425 100 294. Registered office address at 6/8 Boulevard Haussmann 750=
09 Paris France.

L'information contenue dans cet e-mail est confidentielle et uniquement des=
tinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Tou=
te copie, publication ou diffusion de cet email est interdite. Si cet e-mai=
l vous parvient par erreur, nous vous prions de bien vouloir prevenir l'exp=
editeur immediatement et d'effacer le e-mail et annexes jointes de votre sy=
steme. Le contenu de ce message electronique ne represente pas necessaireme=
nt la position ou le point de vue d'Atos Euronext Market Solutions.
Atos Euronext Market Solutions Limited Soci=E9t=E9 de droit anglais, enregi=
str=E9e au Royaume Uni sous le num=E9ro 3962327, dont le si=E8ge social se =
situe 25 Bank Street E14 5NQ Londres Royaume Uni.

Atos Euronext Market Solutions SAS, soci=E9t=E9 par actions simplifi=E9e, e=
nregistr=E9 au registre dui commerce et des soci=E9t=E9s sous le num=E9ro 4=
25 100 294 RCS Paris et dont le si=E8ge social se situe 6/8 Boulevard Hauss=
mann 75009 Paris France.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Brian Raven [ Fr, 22 Juni 2007 11:34 ] [ ID #1746191 ]

Re: Net::FTP prob

ukhas jean wrote:
> Hi,
>
> I am using Net::FTP to "put" files from a local dir to a folder on a
> server using
> $ftp->put (<filename>), where $fth is an obj of Net::FTP.
>
> But it seems "put" doesnt overwrite any existing files, if they are
> already present on the server. How do I overwrite files on the server
> forcibly by using Net::FTP??

I agree with Brian - you should be able to overwrite as long as you
have the right perms on the server.

Try printing out the remote dir :

my $rfiles = $ftp->dir(); # get remote dir listing
print "$_\n" foreach [at] $rfiles;

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Bill Luebkert [ Fr, 22 Juni 2007 12:46 ] [ ID #1746192 ]
Perl » gmane.comp.lang.perl.active-perl » Net::FTP prob

Vorheriges Thema: How to install .pm files
Nächstes Thema: Win32::AdminMisc?