Link to home
Start Free TrialLog in
Avatar of uisc
uisc

asked on

Looking for software (batch porcessing tool)

I need a software (shareware, freeware etc.) to AUTOMATICALLY (on a daily basis) perform a following procedure:
1. Download all new files (or all files that created on a given date or files with specific names - whatever is simpler) from an FTP site (I have: address, folder, userid, password).
2. Zip downloaded files into one archive.
3. Send the archive by e-mail to one specified recipient.

Notes:
1. Tasks 1,2,3 must be performed one after another, automatically on a daily basis.
2. Files that the program must download have specific names based on dates. They look like 10111999.dat etc.

The software I'm looking for not necessarily has to be user friendly. It can be a special user controlled (modifiable) scripts that run some command line utilities one after another or something like that. Actually, having good command line utilities and a special script language this task is very simple to program:
- download CURRENT_DATE.dat from SITE/FOLDER (userid etc.)
- download CURRENT_DATE.txt from SITE/FOLDER (userid etc.)
- zip downloaded files into CURRENT_DATE.zip
-      send CURRENT_DATE.zip to ADDRESS

Thanks in advance.
Avatar of esps
esps

Package called GO!Zilla available from www.gozilla.com or www.gizmo.net/gotour/ should do the trick for you.
regards
Avatar of uisc

ASKER

I don't think GO!Zilla will do anything with zipping and e-mail.
Avatar of uisc

ASKER

I don't think GO!Zilla will do anything with zipping and e-mail.
You need to write a script for this. You can use Perl with activestate's Perl for Win32 www.activestate.com

The FTP command can take all it's commands from a text file. All you need to do is write a perl script which takes the current date and pipes it to a text file along with the associated commands to login and whatnot.

Then run pkzip for DOS to compress the stuff.

Finally email it with the Blat util:
http://gepasi.dbs.aber.ac.uk/softw/Blat.html

This is a little more complex than you probably want, but is no big deal. Also you said a script would be fine.

Avatar of uisc

ASKER

Thanks for your advice, jjeff1. Can you, please, write about the text file format to use with FTP?

Any other ideas?
Python (which is FREE) is a script
language which has utilities to access
FTP, Zip, and Email functions.
www.python.org has the downloadable
executables for Windows, and
www.vex.net/parnassus/ has a large
library of free user-contributed python
modules.
ASKER CERTIFIED SOLUTION
Avatar of jjeff1
jjeff1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uisc

ASKER

I wrote everything in C++ using BLAT as SMTP client, FTP class and command line zip.
Thanks.