?
Solved

Looking for software (batch porcessing tool)

Posted on 2000-03-17
8
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

 
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
 

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 150 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

771 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