Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Learning Tcl/Tk the Hard but Useful Way
Hello,
I'm an experienced programmer, and I'd like to learn Tcl/Tk the hard
but useful way, that is to say, to solve real work problems. I have a
need to automate file download, given the file's url, to unzip the
file to a local Windows folder, and to send an email to me that it's
been done. I also need to schedule it to run daily, but this can be a
Windows scheduler issue. I find it hard to find the bits and pieces I
need to put together. Anyone who can point me to the right direction?
An example may be. Thanks.
gk

Report this thread to moderator Post Follow-up to this message
Old Post
Gene Kahn
10-30-04 08:56 AM


Re: Learning Tcl/Tk the Hard but Useful Way

Gene Kahn wrote:

> Hello,
> I'm an experienced programmer, and I'd like to learn Tcl/Tk the hard
> but useful way, that is to say, to solve real work problems. I have a
> need to automate file download, given the file's url, to unzip the
> file to a local Windows folder, and to send an email to me that it's
> been done. I also need to schedule it to run daily, but this can be a
> Windows scheduler issue. I find it hard to find the bits and pieces I
> need to put together. Anyone who can point me to the right direction?
> An example may be. Thanks.
> gk

check out man pages and http://wiki.tcl.tk in general and specifically for:

ftp and http package
for downloading things (you weren't specific on how the
downloads were being served)
exec command
will allow you to invoke the unzipping of a file

smtp and mime packages
to send email

Bruce


Report this thread to moderator Post Follow-up to this message
Old Post
Bruce Hartweg
10-30-04 08:56 AM


Re: Learning Tcl/Tk the Hard but Useful Way
In article <rEzgd.8$%e6.6@dfw-service2.ext.ray.com>,
Bruce Hartweg  <bruce-news@hartweg.us> wrote:

Report this thread to moderator Post Follow-up to this message
Old Post
Cameron Laird
10-30-04 08:56 AM


Re: Learning Tcl/Tk the Hard but Useful Way
jenjhiz@yahoo.com (Gene Kahn) writes:

> Hello,
> I'm an experienced programmer, and I'd like to learn Tcl/Tk the hard
> but useful way, that is to say, to solve real work problems. I have a
> need to automate file download, given the file's url, to unzip the
> file to a local Windows folder, and to send an email to me that it's
> been done. I also need to schedule it to run daily, but this can be a
> Windows scheduler issue. I find it hard to find the bits and pieces I
> need to put together. Anyone who can point me to the right direction?
> An example may be. Thanks.

Tcl is great, but something like that would be a very short shell
script:

wget http://..............
unzip $filename
echo "$filname downloaded" | mail -s "$filename downloaded" your@address.com

You could use cygwin, most likely.

--
David N. Welton
Personal:                   http://www.dedasys.com/davidw/
Apache Tcl:                 http://tcl.apache.org/
Free Software:              http://www.dedasys.com/freesoftware/
Linux Incompatibility List: http://www.leenooks.com/

Report this thread to moderator Post Follow-up to this message
Old Post
David N. Welton
10-30-04 01:56 PM


Re: Learning Tcl/Tk the Hard but Useful Way
Wow! A simple command for each task at the level of abstraction I'm
comfortable, I can't ask for more. Thanks all.
gk

davidw@dedasys.com (David N. Welton) wrote in message news:<878y9opwr3.fsf@dedasys.com>...[
color=darkred]
> jenjhiz@yahoo.com (Gene Kahn) writes:
> 
>
> Tcl is great, but something like that would be a very short shell
> script:
>
> wget http://..............
> unzip $filename
> echo "$filname downloaded" | mail -s "$filename downloaded" your@address.c
om
>
> You could use cygwin, most likely.[/color]

Report this thread to moderator Post Follow-up to this message
Old Post
Gene Kahn
10-31-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:10 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.