[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wput important question.




Ok, it's a nice idea, this solution is simple and reliable...that's all, very special thanks!

Cya. ;)

 -------------------------------------------------------------------
 Albert Sans Feliu                        
 Departamento de Sistemas                
 Corp. Empresarial Roca SA  
 Mail: albert_sans@roca.net
 Tel.+34 93 496 23 00 - Barcelona
--------------------------------------------------------------------

Confidencialidad/ Confidentiality notice
=================================
Este correo electrónico contiene información estrictamente confidencial y es de uso exclusivo del destinatario, quedando prohibida a cualquier otra persona su revelación, copia, distribución, o el ejercicio de cualquier acción relativa a su contenido. Si ha recibido este mensaje por error, por favor conteste a su remitente mediante correo electrónico y proceda a borrarlo de su sistema. Rogamos nos comunique inmediatamente de cualquier inconveniente que pueda tener usted (o su superior) en relación al envío de este tipo de correo electrónico.

This e-mail message contains confidential information and/or legally privileged and is intended only for the use of the addressed person. Any disclosure, copying, distribution or the taking of any action in reliance on the contents of this e-mail by any other person is strictly prohibited. If you believe that this e-mail message has been sent to you by error, please notify the sender by reply via e-mail and then delete this message from your system. You should  advise immediately if you (or your employer) do not consent to Internet e-mail for this kind of message.



Hagen Fritsch <hagen@itooktheredpill.dyndns.org>

02/06/2004 15:25
Please respond to headshot

       
        To:        albert_sans@roca.net
        cc:        
        Subject:        Re: Wput important question.



Ah, so you want to append something to the remote file. Seems as though this
cannot be done directly, but there might be a few tricks.
If you have the contents of the remote images.txt on your local machine, you
can simply do something like:
cat remote_images.txt images.txt > .tmpimages.txt
mv .tmpimages.txt remote_images.txt
wput remote_images.txt ftp://albert:albert@172.16.100.108/images.txt

So you append locally and wput will upload only the append data.
If you don't have the contents of the remote file, you can use some scripting
on ftp/netcat or parse the wput output to determine the current size or even
download the remote file. You just need to pad the first $remote_size bytes
to a temporary file, append the contents of images.txt to it and then upload
the temporary file, where again only the appended bytes will be submitted.

--
Mit besten Grüßen
Hagen                          mailto:itooktheredpill@gmx.de
                     http://itooktheredpill.dyndns.org