ftplib acting weird

2007-05-04 Thread Merrigan
Hi All, I have written a little script to upload some files to an ftp folder. The problem is as follows : I wrote the script on my windows laptop, and I want to run it from mylinux server. Everything worked fine so I uploaded it to my linux machine. Every time I tun the script I get the following

progress

2007-05-05 Thread Merrigan
. This script runs on a Fedora Machine. Thanx for the help guys! -- Merrigan -- http://mail.python.org/mailman/listinfo/python-list

long lists

2007-05-07 Thread Merrigan
Hi All, Firstly - thank you Sean for the help and the guideline to get the size comparison, I will definitely look into this. At the moment I actually have 2 bigger issues that needs sorting... 1. I have the script popping all the files that need to be checked into a list, and have it parsing th

Re: long lists

2007-05-07 Thread Merrigan
On May 7, 10:18 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Mon, 07 May 2007 00:28:14 -0700, Merrigan wrote: > > 1. I have the script popping all the files that need to be checked into > > a list, and have it parsing the list for everything...Now the problem is

Re: long lists

2007-05-08 Thread Merrigan
On May 7, 10:21 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 07 May 2007 09:14:34 -0300, Merrigan <[EMAIL PROTECTED]> > escribió: > > > The Script it available at this url : > >http://www.lewendewoord.co.za/theScript.py > > I unders

E-Mail Parsing

2007-12-12 Thread Merrigan
lem I have with this is that both the domain, and the username are variable lenghts and that I have no idea how to split the two parts. Is there any way that I can do this? Thank ye very much. -- Merrigan -- http://mail.python.org/mailman/listinfo/python-list

Re: E-Mail Parsing

2007-12-13 Thread Merrigan
On Dec 13, 9:29 am, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Merrigan wrote: > > I am writing a script to administer my E-Mail Server. The One thing > > I'm currently struggling with is kind of Parsing the E-Mail adress > > that I supply to the script. > >

Data Manipulation?

2007-12-13 Thread Merrigan
he E-Mail Alias?' % (answer_1[0], answer_1[1]) How can I now get this to give me the options to delete an adress, or everything, or delete one and modify the rest...or all that you know... Thank ye once again, This group rocks! -- Merrigan -- http://mail.python.org/mailman/listinfo/python-list

making all letters Caps/Small Letters

2007-12-14 Thread Merrigan
Hi There, I'm sure I have done this before, but cannot remember how, or find out how to do it quickly - but is there a way/function/something in python to make all the letters of a raw_input() string small/capital letters? Thanks! -- Merrigan -- http://mail.python.org/mailman/listinfo/p

DB Query Parse Hangup

2007-12-14 Thread Merrigan
db_cursor.execute(del_statement) print "Alias '%s', has been successfully deleted." % answer_1[0] elif to_do == modify: print "WILL BE MODIFIED" any help will be much appreciated. Thank you! -- Merrigan -- http://mail.python.org/mailman/listinfo/python-list

How do I take a directory name from a given dir?

2006-05-01 Thread Merrigan
Hi, I am trying to write a script to backup all my company's server configs weekly. The script will run in a cronjob, on whatever I set it. The issue I am currently having isto "extract" the directory name from a given directory string. For example: from the string "/home/testuser/projects/" I ne

Re: How do I take a directory name from a given dir?

2006-05-01 Thread Merrigan
WOW, Thanks guys. I am really awestruck by the speed you guys relied with. Thanks a lot for the help. I eventually found a way that did the job for me. I will definitely visit this Group more often. Thanks for all the help! :D -- http://mail.python.org/mailman/listinfo/python-list

Sending mail with attachment...

2006-05-13 Thread Merrigan
Hi, I have now eventually finished my newbie-backup script and I'm very proud of the way it functions... Anyways, I am looking for an easy way to use smtplib to send an email with the output log of the script to multiple accounts. I need to use it with a smtp server, and cannot pipe it directly t

Re: Sending mail with attachment...

2006-05-13 Thread Merrigan
Hi Guys, I just wanted to post the error, and then also the coda that causes itI get this no matter what I do to this, and I don't understand it. Any help would be welcome. Thank you Error :: Traceback (most recent call last): File "/home/merrigan/projects/Backup Script/hobbit

Re: How do I take a directory name from a given dir?

2006-05-01 Thread Merrigan Took
Daniel Nogradi wrote: >> Hi, >> >> I am trying to write a script to backup all my company's server configs >> weekly. The script will run in a cronjob, on whatever I set it. >> >> The issue I am currently having isto "extract" the directory name from >> a given directory string. For example: from t