Re: FTP upload anomaly--file opened, but nothing written

2002-01-24 Thread Sivakatirswami

on 1/24/02 7:54 AM, Michael Walas at [EMAIL PROTECTED] wrote:

 Should the line: put gMachinePath of on uploadToArchives read put URL
 gMachinePath? If I try to rapid
 fire 2 or more get URL ftp etc., the second get always returns the
 message -425 Can't build data connection: Address already in use  This
 reply from the server is written to the log fld of the libURL stack.

Aloha from Hawaii, Michael:
Thanks for responding my line is correct... because I can call that same
handler all by itself from the message box and the put fld into URL ftp...
Works fine... so, I suspect I am facing the same issue you faced... address
already in use. i.e. apparently libURL is unable to open/read/write thru two
or more sockets asynchronously to the same domain like most FTP clients can
can.

Scott wrote:
 Other than putting the delay in, no.  I've put this in the QA queue
 for 2.4.2, though, so it will get looked at and, if reproducible,
 fixed for that.  We should start public testing of 2.4.2 in a few
 weeks.

  Sivakatirswami also wrote:
 Also, there is zero feedback mechanism in the current libURL for an FTP
 upload... but of course that is being looked into already no doubt.
 You probably know this, but the result of a successful put URL 'ftp
 etc. returns upload complete
 put the result into cd fld Feedback
Actually I *didn't* know that (where is the documentation?) So, Scott's
putting delay in is very doable in this context... in fact I would rather
the user wait, so using a send in to poll the result until upload is
complete should work.

Anyway I finished the project already, resorting to a completely explicit
socket script for both uploads for this very specific file to two separate
directories...fortunately writing your own sockets still seems to work fine
in the latest versions. But I can use the above result/feedback at least to
provide the user with an assurance on single file uploads

Thanks!

 
 Hope this helps some.

Om shanti,
Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org

Read The Master Course Lesson of the Day at
http://www.gurudeva.org/lesson.shtml

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



FTP upload anomaly--file opened, but nothing written

2002-01-23 Thread Sivakatirswami

I have a  script that uploads a file and then uploads a copy of the same
file to a different directory. In 2.3.2  I wrote the socket myself (well,
actually hacked from Andu's FTP client and dedicated to single site/file
task) and used it completely, twice. This worked fine... one file is
uploaded... feedback is channeled to a log field the user can watch...when
the upload was complete, turn around, open a new socket and upload the
archive file. 

So, trying to do the same with the new URL command set I get this anomaly
from the following script... first file is written, second file is opened,
but no data is written to it.

I know the second handler is correct, because if I run it separately by
itself... from the message box...the file uploads and data is written
properly... but in a one two sequence...  no data is written in the second
handler??

The behaviour is exactly the same in Metacard and Revolution (where, in the
latter case, the start using stack libURL is not needed).

Well, of course the immediate solution to the problem is to for me to simply
use my own full socket scripts (which are a lot faster anyway than libURL.)

But it would be good to have a solution for this, as, obviously, it is much
easier to script a single FTP command line than write the entire socket, as
I am looking for a general purpose solution where I only have to pass the
user:pass:host:path to single command line in scripts.

Also, there is zero feedback mechanism in the current libURL for an FTP
upload... but of course that is being looked into already no doubt.

==
on upload
  start using stack libURL
  put ftp://gUser:gPass@; gHostgPathgFilename into gMachinePath
  put fld ftext into URL gMachinePath
## the above works fine
  if (gUser is gurudeva) and (gFileName is index.shtml ) then
uploadToArchives
end upload

on uploadToArchives
  start using stack libURL
  put line 3 of fld fText into tDate
  put  word 6 of tDate  into tDay
  delete last char of tDay
  if tDay is among the items of (1,2,3,4,5,6,7,8,9) then put 0 before tDay
  put word 5 of tDate  _ tDay_ word 7 of tDate into tDateString
  put archives/tDateString/index.shtml  into archiveFile
  put ftp://gUser:gPass@; gHostgPatharchiveFile into
gMachinePath
  put gMachinePath
##the above works fine if you run uploadToArchives from the message box
## but not in sequence from the upload handler above.

TIA!

Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org

Read The Master Course Lesson of the Day at
http://www.gurudeva.org/lesson.shtml

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard