Home > Archive > Tcl > October 2004 > Learning Tcl/Tk the Hard but Useful Way
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Learning Tcl/Tk the Hard but Useful Way
|
|
| Gene Kahn 2004-10-30, 3:56 am |
| 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
| |
| Bruce Hartweg 2004-10-30, 3:56 am |
|
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
| |
| Cameron Laird 2004-10-30, 3:56 am |
| In article <rEzgd.8$%e6.6@dfw-service2.ext.ray.com>,
Bruce Hartweg <bruce-news@hartweg.us> wrote:
| |
| David N. Welton 2004-10-30, 8:56 am |
| 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/
| |
| Gene Kahn 2004-10-30, 8:56 pm |
| 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>...
> 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.com
>
> You could use cygwin, most likely.
|
|
|
|
|