Solved

Looking for software (batch porcessing tool)

Posted on 2000-03-17
8
183 Views
Last Modified: 2013-12-28
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
Comment
Question by:uisc
8 Comments
 

Expert Comment

by:esps
ID: 2631053
Package called GO!Zilla available from www.gozilla.com or www.gizmo.net/gotour/ should do the trick for you.
regards
0
 

Author Comment

by:uisc
ID: 2631252
I don't think GO!Zilla will do anything with zipping and e-mail.
0
 

Author Comment

by:uisc
ID: 2631258
I don't think GO!Zilla will do anything with zipping and e-mail.
0
 
LVL 7

Expert Comment

by:jjeff1
ID: 2631298
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

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

Any other ideas?
0
 

Expert Comment

by:rupole
ID: 2633935
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
 
LVL 7

Accepted Solution

by:
jjeff1 earned 50 total points
ID: 2634488
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
 

Author Comment

by:uisc
ID: 2635236
I wrote everything in C++ using BLAT as SMTP client, FTP class and command line zip.
Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now