[REBOL] Re: Oneline FTP Probelm
From: AJMartin:orcon at: 24-Jan-2004 11:49
Behrang S. wrote:
> In the oneliners section I saw the following code snippet for transferring
a file via ftp protocol:
> write/binary ftp://user:[pass--ftp--example--com]
> read/binary %file
>
> I have a file called behrangsa.png (I have copied it to the view
directory) and I want to send it to the machine where my site is hosted on
it but I get the following error message:
> User Error: Server error: tcp 553 Can't open that file: Is a directory
> ** Near: write/binary
> ftp://xxx:[yyy--ftp--behrang--org]/wwwdocs read/binary %behrangsa.png
>
> (I want to send the file to the wwwdocs folder as it's mapped to the www
subdomain)
Try this:
write/binary ftp://user:[pass--ftp--example--com]/wwwdocs/behrangsa.png
read/binary %behrangsa.png
--
Andrew J Martin
ICQ: 26227169
http://www.rebol.it/Valley/
http://valley.orcon.net.nz/
http://Valley.150m.com/