Re: Delete FTP file (What about uploading?)
Re: Delete FTP file (What about uploading?)
- Subject: Re: Delete FTP file (What about uploading?)
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 13 Jun 2003 08:50:06 -0400
On Thursday, Jun 12, 2003, at 16:30 US/Eastern, Joseph Weaks wrote:
The password problem is solved. These two work interchangeably in
Terminal:
curl -T test.html ftp://stuwww.tcu.edu/wwwpub/ -u UsrName:PassWd
curl -T test.html ftp://UsrName:email@hidden/wwwpub/
But when I try specifying a file with a path that includes folders,
such as
curl -T /Users/his/test.html
ftp://UsrName:email@hidden/wwwpub/
I get the error:
curl: (9) Couldn't change to directory wwwpub//Users/his
This /folder/file name is the format that's used in a droplet, of
course.
Here is the droplet I'm using:
on open aliasList
set theURL to "ftp://UsrName:email@hidden/wwwpub/"
repeat with eachFile in aliasList
set posixFile to POSIX path of eachFile
do shell script "curl " & the quoted form of theURL & " -T " & the
quoted form of posixFile
end repeat
end open
I understand what it's trying to do, to match the file path remotely,
but I can't find an option to override that. If there was a - option
that allows to specify a different name, I could add a line:
tell application "Finder" to set fileName to the name of eachFile
Suggestions?
Finally, no matter what I do, the output includes this paragraph,
which I haven't a clue what it means:
*** malloc[431]: Deallocation of a pointer not malloced: 0x30650; This
could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
Thanks for any help,
Joe Weaks
Joe, I got the same thing when I tried a file given in the folder/file
format.
The workaround is to change to the directory you have the files and
"curl" from there.
Regards
Deivy Petrescu
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.