Solved

Looking for software (batch porcessing tool)

Posted on 2000-03-17
8
184 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
Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a trade show? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

 

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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
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.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

25 Experts available now in Live!

Get 1:1 Help Now