Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2001 12:34:51 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        jacks@sage-american.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FTP to remote host Question
Message-ID:  <20010823123451.O459@k7.mavetju.org>
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
References:  <3.0.5.32.20010822211315.01131a78@mail.sage-american.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010823123451.O459>