Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Oct 1998 16:48:22 -0400 (EDT)
From:      BEAUPRE Antoine <beaupran@JSP.UMontreal.CA>
To:        Malartre <malartre@aei.ca>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How can I send more than one file by ftp? (something like a recursive option)
Message-ID:  <Pine.SGI.3.96.981011163715.20422A-100000@derby.jsp.umontreal.ca>
In-Reply-To: <362111F7.EB284755@aei.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 11 Oct 1998, Malartre wrote:

> I cannot find a recursive option in ftp, to be abble to batch send.
> I have something like 50 .html to upload on a server and wonder if it
> would be possible to send them in one shot.

ftp> mput *.html

Tu peux aussi faire pareil pour get (mget *.html). Pour "recursive option"
j'imagine que tu parles d'aller toujours un repetoire plus loin? Eh bien
la c'est nu peu plus complique. Je ne crois pas que ftp ait une telle
capacite, alors il faudrait un shell script. qqchose du genre:

-----------------------------------------
#! /bin/sh

echo anonymous >> scriptfile
echo anonymous@foo.bar >> scriptfile

for dir in `find -type d .` do
	echo mput "$dir"/*.html >> scriptfile
done

cat scriptfile | ftp hostname
------------------------------------------

JE NE L'AI PAS TESTE!!! Fait attention! Je ne suis pas sur de la syntaxe
non plus...

Il y a quelques variables que tu devra changer...

`find -type d .` ca dit de trouver tous les repertoires a partir du
courant.

> Also, would there be a utility to automaticaly upload file whose date
> his more recent than those on the ftp?

J'ai reflechi a la question, et tout ce que j'ai trouve, c'est que je
devais garder un fichier bidon que je "touch" a chaque fois que
j'upload...

Salut! Et, au fait, je sais pas si tu regardes la mailing list, mais je
viens de dec**sser ma partition /... newfs /dev/wd0s2 . Je sais plus quoi
faire!

> -- 
> [Malartre][malartre@aei.ca][http://www.aei.ca/~malartre/]
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

+-----------------------------------+
|  Free the world from businessmen  |
|   Free yourself from your money   |
+-----------------------------------+
Free the web. 
Spidey

visit: http://www.JSP.UMontreal.CA/~beaupran


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.3.96.981011163715.20422A-100000>