Pass A Var To a Python Script?

2007-04-11 Thread Eric Price
Hi; How do I pass a variable to a python script? Something like this (which doesn't work): ./test.py?var=hello_world TIA, Eric _ Mortgage refinance is Hot. *Terms. Get a 5.375%* fix rate. Check savings https://www2.nextag.com/goto

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
>From: hlubenow <[EMAIL PROTECTED]> >To: python-list@python.org >Subject: Re: Can't Get Email Interface Working >Date: Sun, 08 Apr 2007 01:59:53 +0200 > >You can use it just like that: > >--- > >from simplemail import Email >Email( > from_address = "[EMAIL PROTEC

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
>From: Dennis Lee Bieber <[EMAIL PROTECTED]> >To: python-list@python.org >Subject: Re: Can't Get Email Interface Working >Date: Sat, 07 Apr 2007 20:07:53 GMT > >On Sat, 07 Apr 2007 13:42:38 -0500, "Eric Price" ><[EMAIL PROTECTED]> declaimed the follo

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
> Complain to the providers of the server? Or find out what the host >name is for the outgoing SMTPd connection, and use it directly. Complaining isn't going to help. How do I determine the outgoing smtpd connection and how do I use it directly? TIA, Eric __

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
From: "Tim Williams" <[EMAIL PROTECTED]> To: "Eric Price" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], python-list@python.org Subject: Re: Can't Get Email Interface Working Date: Sat, 7 Apr 2007 17:53:28 +0100 On 07/04/07, Eric Price <[EMAIL PROTECTED]> w

Re: Can't Get Email Interface Working

2007-04-07 Thread Eric Price
;To: python-list@python.org >Subject: Re: Can't Get Email Interface Working >Date: Sat, 07 Apr 2007 17:33:38 +0200 > >Eric Price wrote: > > > Hi; > > I'm writing a script that includes an email function. So I went to the > > cookbook and dug up this, and tweake

Can't Get Email Interface Working

2007-04-07 Thread Eric Price
Hi; I'm writing a script that includes an email function. So I went to the cookbook and dug up this, and tweaked it just a bit to make it easier to get it to work, but it throws an error: >>>def createMail(sender, recipient, subject, html, text): ... import MimeWriter, mimetools, cStringIO .

Re: os.system questions

2007-03-31 Thread Eric Price
Thank you :) Eric >From: "Parthan SR" <[EMAIL PROTECTED]> >To: "Eric Price" <[EMAIL PROTECTED]> >Subject: Re: os.system questions >Date: Sat, 31 Mar 2007 19:52:01 +0530 > >On 3/31/07, Eric Price <[EMAIL PROTECTED]> wrote: >> >>

Re: os.system questions

2007-03-31 Thread Eric Price
a cron event such that "freshReboot" actually gets called when I run test.py? TIA, Eric >From: "Eric Price" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >CC: python-list@python.org >Subject: Re: os.system questions >Date: Sat, 31 Mar 2007 09:33:03 -0400 > &g

Re: os.system questions

2007-03-31 Thread Eric Price
Great! That seems to work fine: #!/usr/local/bin/python import re, os def freshReboot(): up = os.popen('uptime').readlines() up = up[0] if re.search('day|hour', up): pass else: tup = re.split('min', up) first = tup[0]

os.system questions

2007-03-31 Thread Eric Price
Hi; I have a couple bugs to work out in the below script; namely, I don't know how to capture the result of an os.system command, nor am I convinced that the call to os.system actually results in the execution of the command. Here is the script: #!/usr/local/bin/python import re, os def fres

Re: what is this?

2007-01-04 Thread Eric Price
>From: Paul Watson <[EMAIL PROTECTED]> >Probably most helpful to you is: > >http://developer.mozilla.org/es4/proposals/slice_syntax.html Oh, the step. Okay, thanks ;) Eric _ Communicate instantly! Use your Hotmail address to sign in

what is this?

2007-01-04 Thread Eric Price
Hello; I'm studying some code examples from the python cookbook site. I came across this: def colsplit(l, cols): rows = len(l) / cols if len(l) % cols: rows += 1 m = [] for i in range(rows): m.append(l[i::rows]) return m What I'd like to know is what is the double

test

2006-12-13 Thread Eric Price
test _ Get the latest Windows Live Messenger 8.1 Beta version. Join now. http://ideas.live.com -- http://mail.python.org/mailman/listinfo/python-list