ftp question
[1/3] from: bry::itnisk::com at: 31-Oct-2002 17:54
I'm connecting to an ftp port where rsync is running.
What I want to do is not to use ports yet, just write to the ftp site,
rsync does not run until the connection is closed however.
I figured I could just do
ftp-connect: ftp://username:[password--ftpsite--com]/folder/filename.xml
write ftp-connect read %filename.xml
ftp-connect: none
unfortunately this does not seem to close down the ftp connection, at
least not if I'm running this from the console(I suppose it would shut
down if I ran the script from the command line.)
[2/3] from: gscottjones:mchsi at: 31-Oct-2002 12:21
From: "bryan"
> I'm connecting to an ftp port where rsync is running.
>
> What I want to do is not to use ports yet, just write to the ftp site,
> rsync does not run until the connection is closed however.
> I figured I could just do
...
> unfortunately this does not seem to close down the ftp connection, at
> least not if I'm running this from the console(I suppose it would shut
> down if I ran the script from the command line.)
Hi, Bryan,
Gabriele addressed this awhile back. Originally I thought he also mentioned
a way to force it to close (without quiting the REBOL session), but
obviously not in this email.
--Scott Jones
http://www.escribe.com/internet/rebol/m26306.html
[3/3] from: sterling:rebol at: 31-Oct-2002 11:04
By default, REBOL will cache the last 5 ftp connections you have made.
As you make new ones the least recently used will be closed. If you
want to change the number of cached connections or just to have your
single connection closed immediately, you have this control by
changing:
system/schemes/ftp/cache-size
It is set to 5 by default. Setting this to 0 will close all ftp
sessions immediately after use. It sounds like that's what you want.
Sterling