From owner-freebsd-questions Sat May 19 19: 2:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (dav32.law15.hotmail.com [64.4.22.89]) by hub.freebsd.org (Postfix) with ESMTP id 9682537B42C for ; Sat, 19 May 2001 19:02:24 -0700 (PDT) (envelope-from want_2_learn_freebsd@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 19 May 2001 19:02:24 -0700 X-Originating-IP: [209.144.200.102] From: "Doug Wilson" To: Subject: FTP shell script Date: Sat, 19 May 2001 19:02:20 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 20 May 2001 02:02:24.0437 (UTC) FILETIME=[E9A92650:01C0E0D0] 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 need to have a scrip zip up a directory periodically, and ftp it to a microsoft version ftp server. The zip part was a snap. But I can't seem to get anywhere with the ftp part. 1st, here is the last script I tried: #! /bin/csh zip -r /home/wwwroot/mrtg-backup.zip /home/wwwroot/vhosts/mrtg.apc.net/* ftp ftp://myusername:mypassword@ftp.apc.net put mrtg-backup.zip by OK, now clearly, this is wrong as 1) the following line are never passed to the ftp server, but what has really been frosting me is 2) a problem with passive transfers. The ftp server I'm ftping to doesn't allow passive transfers (goes REAL SLOW--really useless when trying to do passive), but when I execute that script, it automatically enables passive transfers for the session. I have searched and searched for a .netrc, but found none to turn that off. I know that at the command line, I can type passive, then it will disable passive mode, but only for that session, and not in my script. Since passive is default, I tried passing the -p in the initial ftp line, but that only requested it! Anyone got any ideas? Thanks! Doug. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message