OK, I need to download files from a cgi-bin and the "put url" i.e. http
protocol is denied by the server permissions, which will only allow files on
the top level of the public_html directory to be retrieved by the URL
statement. So I have to do it via ftp. Working on analyzing Andu scripts. .
.this one is a puzzle,

The command is to read from a socket with a message, then the handler for
the message picks up one and sometimes two passed parameters that are not
explicitly declared when the message is called,
my questions in the comments are:

write "RETR "  & serverFile & CRLF to socket Q
    read from socket Q for 1 line
    --get data length stuff in here. . .
    read from socket transPasvIP  with message "getData"
 
on getData z 
  --Where is z coming from? its not declared earlier. does the read
    --from socket automatically pass a port number?
  put z into tOSocket
      --wouldn't it be the same if we just stayed with socket transPasvIP
  read from socket z with message "moreData"
end getData

on moreData g,h
  --same question. . .where are parameters/data for g and h coming from?
  --is this assumption correct: a read from socket with message
  --always auto generates two parameters, the socket no. and the data itself
  -- that was just read? its not documented. . .
  write h to file newFile
   --OK, so h is obviously the date just read from the socket
  read from socket g with message "moreData"
    -- same question as above. . .why not just stick with
    -- socket transPasvIP?
end moreData


Thanks! building little widgets that get specific files and posts them back
automatically makes life sooo easy. (thanks andu!) if anyone is interested
in seeing the scripts for this FTP work in progress, email me off list.

Hinduism Today

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


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to