sorry, first message has not been sent : this is it :<br>Hi all,<br><br>I have a little problem for ftp connexion : i want to download my_file.txt at <a href="http://example.com/upload/my_file.txt">example.com/upload/my_file.txt</a> in my current directory : this is my code :<br>
(define cd (current-directory))<br>(define foo (ftp-establish-connection "<a href="http://example.com">example.com</a>" 21 "username" "pAsswOrd"))<br>(ftp-cd foo "upload")<br>(ftp-download-file foo (build-path cd) "my_file.txt")<br>
(ftp-close-connection foo)<br>(printf "my_file has been downloaded")<br><br>This is ok, my_file.txt is now on my current directory. Now, i write some text with racket in my file, and i want, when it's finish, upload this new file in my server, so replace <a href="http://example.com/upload/my_file.txt">example.com/upload/my_file.txt</a><br>
<br>However, i think (ftp-upload-file ... ) doesn't exists in racket, so how can i upload my file ?<br>i have written a bash file (ubuntu) and a batch file (windows) who upload my_file.txt on my server. Can i launch, for example in windows, ftp-upload.bat via racket for upload my file on my server ?<br>
<br>thanks,<br>mw<br><br>-----<br><br>thanks neil, but i don't know how to write this procedure ... and where can i found the code from the others ftp functions for help me<br>you say use http uploading, this is possible in scheme ?<br>
can you explain me how to do this ?<br><br>thanks<br>,mw<br>