MACSCRPT Archives

June 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Doug Metz <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 8 Jun 2006 08:45:12 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
on 6/7/06 9:00 PM, Ed Stockly thoughtfully composed:

> set ftpShellScript to "ftp -d -v -u ftp://" & remoteUserid & ":" &
> remotePassword & "@" & remoteServer & ":21" & remotePath & fileName & " " &
> localFile


I should learn to read a bit before posting
(and change my subject lines ;) ).  This from 'the man':

In order to be compliant with RFC 1738, ftp strips the leading "/" from
path, resulting in a transfer relative from the default login directory of
the user.  If the / directory is required, use a leading path of "%2F".  If
a user's home directory is required (and the remote server supports the
syntax), use a leading path of "%7Euser/".  For example, to retrieve
/etc/motd from `localhost' as the user `myname' with the password `mypass',
use "ftp://myname:mypass@localhost/%2fetc/motd"


It doesn't say what happens if you don't have a leading "/" in your path to
begin with...

Doug

ATOM RSS1 RSS2