From owner-freebsd-questions Tue Apr 23 16:49:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from raiden.jasnetworks.net (raiden.jasnetworks.net [65.194.248.251]) by hub.freebsd.org (Postfix) with ESMTP id 523BC37B41C for ; Tue, 23 Apr 2002 16:49:38 -0700 (PDT) Received: from works (works.jasnetworks.net [192.168.0.2]) by raiden.jasnetworks.net (8.11.6/8.11.6) with ESMTP id g3NNufA15790 for ; Tue, 23 Apr 2002 19:56:41 -0400 (EDT) (envelope-from raiden23@netzero.net) Message-Id: <4.2.0.58.20020423195049.0095f990@pop.netzero.net> X-Sender: raiden23@pop.netzero.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Tue, 23 Apr 2002 19:55:57 -0400 To: freebsd-questions@FreeBSD.ORG From: Lord Raiden Subject: Using macros with FTP Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. I was reading the man page on FTP and noticed that it offers a macro option to automate the grabbing of certain files from an FTP site. Now my question is say I want to login to a site called "ftp.myftpsite.com" and had to login using "myusername" and "mypassword". Once I'm in I want to go to the directory "/pub/ftp/files/myapp/" then down load 3 files in there. How would I properly setup the command line to execute the macro and login to that site? Next question is what's the proper format for the macro file? Would it be something like this: myusername mypassword cd /pub/ftp/files/myapp/ get file1 get file2 get file3 quit Or is there a different way to do the macros?? I've read the docs but I want to be sure I'm doing this right. Thanks for the help. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message