From owner-freebsd-questions Wed Aug 22 19:35: 9 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 2043F37B409 for ; Wed, 22 Aug 2001 19:35:03 -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 6C9812B6FC; Thu, 23 Aug 2001 04:35:00 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id 2525F7DD; Thu, 23 Aug 2001 12:34:51 +1000 (EST) Date: Thu, 23 Aug 2001 12:34:51 +1000 From: Edwin Groothuis To: jacks@sage-american.com Cc: freebsd-questions@freebsd.org Subject: Re: FTP to remote host Question Message-ID: <20010823123451.O459@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , jacks@sage-american.com, freebsd-questions@freebsd.org References: <3.0.5.32.20010822211315.01131a78@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.20010822211315.01131a78@mail.sage-american.com>; from jacks@sage-american.com on Wed, Aug 22, 2001 at 09:13:15PM -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 Wed, Aug 22, 2001 at 09:13:15PM -0500, jacks@sage-american.com wrote: > This one should be easy for most, but me tomight: > > I know the FTP auto-fetch for a file is: > # ftp gtp://username:passwd@remotehost.com/dir/file > > BUT, what is the FTP line command to auto-send a file? Trying to set up a > cron job script. With this as your .netrc: machine ftp.freebsd.org login anonymous password edwin@mavetju.org macdef blaat pwd and this as your commandline: echo "$ blaat" | ftp ftp.freebsd.org you end up with something like this: [~] edwin@k7>echo "$ blaat" | ftp ftp.freebsd.org 257 "/" is current directory. the rest is just more of the same :-) 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