From owner-freebsd-questions Sun Aug 26 15: 2: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id A0DBE37B40B for ; Sun, 26 Aug 2001 15:01:55 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id BDEF42B6AC; Mon, 27 Aug 2001 00:01:52 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id BE8415F; Mon, 27 Aug 2001 08:01:43 +1000 (EST) Date: Mon, 27 Aug 2001 08:01:43 +1000 From: Edwin Groothuis To: jacks@sage-american.com Cc: freebsd-questions@freebsd.org Subject: Re: FTP Auto-Send Need Message-ID: <20010827080143.D29422@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , jacks@sage-american.com, freebsd-questions@freebsd.org References: <3.0.5.32.20010826102823.01151810@mail.sage-american.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3.0.5.32.20010826102823.01151810@mail.sage-american.com>; from jacks@sage-american.com on Sun, Aug 26, 2001 at 10:28:23AM -0500 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 On Sun, Aug 26, 2001 at 10:28:23AM -0500, jacks@sage-american.com wrote: > I have an FTP question that is probably simple for some, but is maddening > for me since I have yet to get an FTP command (and a script) to work > properly. I have read/reread "man ftp", but no solution yet. Here is the > problem: Use this as .netrc: machine yourmachine login youruserid password yourpassword macdef blaat cd temp pwd put .profile profile quit and as command: "echo '$ blaat' | ftp localhost". The apostrophes are to make sure the $ doesn't get expanded by the shell. enjoy, Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message