Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

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.
0
uisc
Asked:
uisc
1 Solution
 
espsCommented:
Package called GO!Zilla available from www.gozilla.com or www.gizmo.net/gotour/ should do the trick for you.
regards
0
 
uiscAuthor Commented:
I don't think GO!Zilla will do anything with zipping and e-mail.
0
 
uiscAuthor Commented:
I don't think GO!Zilla will do anything with zipping and e-mail.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
jjeff1Commented:
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.

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

Any other ideas?
0
 
rupoleCommented:
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.
0
 
jjeff1Commented:
The FTP text format is just a plain text file with one command per line, exactly the same as you would enter using the command line ftp.

So lets say you want to write a file to logon to a server and download 1 file, you might make a text file with this text in it:
open my_ftp_site.com
myusername
mypassword
binary
prompt
mget the_file_I_want.exe
quit

then instruct FTP to use it with the command ftp -s:that_text_file.txt

I would use perl for this, simply because Perl is a poplar language. It is portable to many different operating systems with no modifications, and is fairly easy to learn. In addition, Perl is built for doing scripts like this. The text handling tools are very powerful.
0
 
uiscAuthor Commented:
I wrote everything in C++ using BLAT as SMTP client, FTP class and command line zip.
Thanks.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now