Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageGene 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
Post Follow-up to this messageIn article <rEzgd.8$%e6.6@dfw-service2.ext.ray.com>, Bruce Hartweg <bruce-news@hartweg.us> wrote:
Post Follow-up to this messagejenjhiz@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/
Post Follow-up to this messageWow! 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]
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.