From owner-freebsd-questions Sun Oct 11 13:48:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05258 for freebsd-questions-outgoing; Sun, 11 Oct 1998 13:48:34 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05253 for ; Sun, 11 Oct 1998 13:48:32 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id QAA01335; Sun, 11 Oct 1998 16:48:20 -0400 (EDT) Received: from derby.jsp.umontreal.ca (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via ESMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id QAA17397; Sun, 11 Oct 1998 16:48:23 -0400 Received: from localhost (beaupran@localhost) by derby.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id QAA21395; Sun, 11 Oct 1998 16:48:22 -0400 X-Authentication-Warning: derby.jsp.umontreal.ca: beaupran owned process doing -bs Date: Sun, 11 Oct 1998 16:48:22 -0400 (EDT) From: BEAUPRE Antoine To: Malartre cc: freebsd-questions@FreeBSD.ORG Subject: Re: How can I send more than one file by ftp? (something like a recursive option) In-Reply-To: <362111F7.EB284755@aei.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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