Easily pull or push files via FTP, both on demand and in a script
Do you need to pull data files from a manufacturer or push them to an OEM? We made the Ftasks library to simplify these tasks. Ftasks includes a powerful file transfer batch utility that lets you add a new file source or destination by adding one line to a config file as well as ad hoc file transfer tools that are easier to use than traditional FTP clients as well as .
FTP scripting with Ftask
Ftask configfilepath or
Ftask -setlicense Use this call only to install a purchased license key.
Ftask is designed to support scripted or batch ftp actions. It can pull or push all files in a folder or those matching a pattern. It can also optionally pull or push from all subdirectories or remove files from the source, or even archive transmitted files to a designated location.
Ftask behavior is controlled by a simple config file specified by configfilepath parameter. Each line of the config file specifies a new pull or push task to perform according to the patterns shown below, so multiple pulls and pushes can be performed in one Ftask call, each one covering a separate combination of server, directory and file pattern.
Config file pull lines
Note that lines starting with # are ignored.
#Pull:Description;server;user;password;remote dir;local dest dir;optional match pattern;pull all files;delete after pull; remote archive dir;pull recursively; suffix to add; log name of this row;timestamp log
This entry will pull from server 184.108.40.206 folder /user/home/gopher all files, delete them without archiving on the server, but not recursively
Config file push lines
#Push;Dest description;server;user;password;local source dir;remote dest dir;optional match pattern;push all files;delete after push;local archive dir;push recursively;log name;timestamp log
This entry will push to server 192.168.0.2 folder ./filedrop. All files in local folder c:\work\files (but not subfolders) will be pushed and then deleted, but a local copy will be written to c:\work\archive first
Note that the user name and password fields can be empty in Ftasks config file lines, as well as Fpull and Fpush calls. If they are empty, Ftask, Fpull and Fpush will use values from the .netrc file (_netrc on Windows). If user name and password are specified, the netrc file will be updated with the new values.
Ad Hoc FTP tools
Our ad hoc ftp tools let you pull or push files with one call, and you never have to enter authentication information for a server for more than once.
Fpull 192.168.1.10 docs mydoc.txt [user name] [password]
Fpull will pull the file named mydoc.txt from an ftp server at address 192.168.1.10 from the ftp server directory named docs. For the root directory of the ftp account use directory “.” (without the quotes).
Fpush server serverdir filetoupload [user name] [password]
Fpush will push filetoupload from the local file system to directory serverdir on server.
- Download Ftask.zip.
- Extract the zip file in the desired location.
- For ease of use add the
/Ftask/bin directory to your execution path
Ftask requires a purchased license key; Fpush and Fpull do not. Ftask will automatically use a 2-week temporary evaluation license when first run if no key is provided. We are currently offering early user perpetual license pricing of $200 per user or server. If you are ready to move forward with purchasing a license click the “Buy Now” button to pay with a credit card.
Please contact us with product questions or feedback, purchase requests or volume pricing questions.