Oneline FTP Probelm
[1/5] from: behrangsa::yahoo::com at: 12-Jan-2004 16:21
Hi
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)
Any ideas?
Thanks in advance,
Behrang S.
[2/5] from: nitsch-lists:netcologne at: 13-Jan-2004 2:10
Am Dienstag 13 Januar 2004 01:21 schrieb Behrang Saeedzadeh:
> Hi
> In the oneliners section I saw the following code
<<quoted lines omitted: 13>>
> mapped to the www subdomain)
> Any ideas?
Yes, the example is misleading. you need the full filename for target.
write/binary ftp://xxx:[yyy--ftp--behrang--org]/wwwdocs/behrangsa.png
read/binary %behrangsa.png
should work.
and if behind firewall system/schemes/ftp/passive: true
> Thanks in advance,
> Behrang S.
>
-Volker
[3/5] from: gerardcote:sympatico:ca at: 12-Jan-2004 21:09
Hi,
I would first try putting a filename after the Folder name or put a terminating /
to specify REBOL wwwdocs is a folder name (by convention I think REBOL
is waiting for a / after a folder name)
HTH,
Gerard
[4/5] 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/
[5/5] from: behrangsa::yahoo at: 12-Jan-2004 18:47
Hi Volker
> Yes, the example is misleading. you need the full
> filename for target.
<<quoted lines omitted: 4>>
> and if behind firewall system/schemes/ftp/passive:
> true
Thanks. It worked.
Behrang.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted