Example of FTP TCL Script


I am new to TCL and I am looking for examples of TCL scripts using the FTP libs.  I need to pull a file (anytime the file changes) from an FTP server and save it to a desktop.  Any advice/examples would be appreciated.  Thank you for your time.
Who is Participating?
omarfaridConnect With a Mentor Commented:
you can use simple batch file to login via ftp and get the file. You can create text file like one below, call it ftp.txt

open myserver
cd /path/to/mydir
get myfile

This can then be executed, like this:

ftp -s:ftp.txt

this can be scheduled on the windows system
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.