Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

terminal ftp

0 views
Skip to first unread message

Robert

unread,
Feb 18, 2005, 4:37:41 PM2/18/05
to
I am using the terminal in MacOS 10.2.6. I have a saved a term file
which I use to invoke the ftp command. The command string is:
ftp my...@www.mysite.com

What I'd like to be able to automate is the setting of the remote path
and the local path. I have tired:
ftp my...@www.mysite.com:directory/subdirectory

but I get an error when I do this.

Thanks

Robert

matt neuburg

unread,
Feb 18, 2005, 4:48:31 PM2/18/05
to
Robert <rcch...@my-deja.com> wrote:

> I am using the terminal in MacOS 10.2.6. I have a saved a term file
> which I use to invoke the ftp command. The command string is:
> ftp my...@www.mysite.com
>
> What I'd like to be able to automate is the setting of the remote path
> and the local path. I have tired:
> ftp my...@www.mysite.com:directory/subdirectory

Try using a regular FTP URL:

ftp ftp://my...@www.mysite.com/directory/subdirectory

m.

--
matt neuburg, phd = ma...@tidbits.com, http://www.tidbits.com/matt/
AppleScript: The Definitive Guide
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Read TidBITS! It's free and smart. http://www.tidbits.com

Tom Stiller

unread,
Feb 18, 2005, 5:03:07 PM2/18/05
to
In article <1gs6ltk.1f212ru1i360e8N%ma...@tidbits.com>,
ma...@tidbits.com (matt neuburg) wrote:

> Robert <rcch...@my-deja.com> wrote:
>
> > I am using the terminal in MacOS 10.2.6. I have a saved a term file
> > which I use to invoke the ftp command. The command string is:
> > ftp my...@www.mysite.com
> >
> > What I'd like to be able to automate is the setting of the remote path
> > and the local path. I have tired:
> > ftp my...@www.mysite.com:directory/subdirectory
>
> Try using a regular FTP URL:
>
> ftp ftp://my...@www.mysite.com/directory/subdirectory
>
> m.

Or write a shell script which includes any FTP commands you like, for
example:

sftp www.mysite.com <<EOF
cd <wherever you want on the remote machine>
lcd <wherever you want on the local machine
get and put statements as you choose
...
EOF

--
Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3
7BDA 71ED 6496 99C0 C7CF

0 new messages