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
> 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
> 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