Re: Help implementing an idea

2005-06-19 Thread Fuzzyman
[EMAIL PROTECTED] wrote: [snip..] > results. Now, I was thinking today, I'd really like to create a program that > can go to a specific directory and upload all the files in the directory to a > specific url for backup purposes, and I have the feeling that the python > implementation would be ruthl

Re: Help implementing an idea

2005-06-19 Thread gene tani
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299271 or the nice recipe, page 403 of cookbook2, that i can't find in ASPN -- http://mail.python.org/mailman/listinfo/python-list

Re: Help implementing an idea

2005-06-18 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >Well, I'm a total python n00b, but I was playing around with exception >handling >yesterday, and was stricken by how incredibly easy it is to use the op system >to create nice scripts... I did the following: > >import sys >lines = sys.stdin.readlines() >lines.sort() >

Re: Help implementing an idea

2005-06-17 Thread rh0dium
Try this.. #!/usr/bin/env python # Upload a file to a FTP server from sys import argv, exit from ftplib import FTP if len(argv) != 6: print 'Incorrect number of parameters' print 'USAGE: upload.py ' exit(0) server = argv[1] username = argv[2] password = argv[3] upfile = argv

Re: Help implementing an idea

2005-06-17 Thread utabintarbo
Take a look at: http://dirssync.sourceforge.net/ See if that gives you any direction. -- http://mail.python.org/mailman/listinfo/python-list