Python or Java or "X" from me and my little job

Ben Thomas bthomas at trey-industries.com
Mon Sep 13 13:36:39 EDT 1999


Actually I just want to
1)get current date and come up with its string like: 01251999
2)zip some files and name the archive 01251999
3)ftp the archive off site

this is my first task but I know there will be others. It isn't hard to code
I am just new to Python.

Ben

"Magnus L. Hetland" wrote:

> Ben <bthomas at trey-industries.com> writes:
>
> > I am new to Linux. I have Python 1.5.2 up and working. I want to have
> > Python grab some files, ZIP them, and FTP them offsite. I will let CRON
> > start the job every night. Since I am just getting to look at Python, I
> > wanted to ask to make sure I don't pick the wrong tool for the job.
> >
> >
> > 1)Am I selelcting a good tool to get light weight sys admin jobs done?
>
> Well... If it is a light weight sysadmin-job, maybe a simple shell
> script would do it? (Then you could move it to Python if it grew...)
>
> I mean - if the set of files is fixed (or given as a command-line
> argument) I guess this thing you are talking about could be done in
> two lines in any standard shell (assuming that you have a good ftp
> client like ncftp.)
>
> --
>
>   Magnus
>   Lie                                     Please forward all spam to
>   Hetland                                                uce at ftc.org





More information about the Python-list mailing list