[Tutor] cgi script to start another process in background

2009-02-22 Thread Ravi Kondamuru
Hi, I am trying to write a python cgi script, that invokes another process and exists. Using the subprocess documentation on NO_WAIT, I am not having much success: pid = os.spawnlp(os.P_NOWAIT, "/bin/mycmd", "mycmd", "myarg") ==> pid = Popen(["/bin/mycmd", "myarg"]).pid The script seems to wait

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-22 Thread Alan Gauld
"Wayne Watson" wrote tried XP's Help on command prompts. Not much there. Is there another source? When you say XPs help do you mean the GUI help tool? There isn't much in there. For DOS things use the DOS help tool. Type HELP CMD at the DOS prompt. Alan G.

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-22 Thread Wayne Watson
Title: Signature.html Under Start there's a ? icon that says Help and Support.  Minimal info. It seems to me that the Command Prompt window is important enough in the use of Python to warrant a full page somewhere to its applicability. Well, if not, then I'll make do with what I've seen here. 

[Tutor] Simple CGI script and Apache configuration

2009-02-22 Thread wormwood_3
Hello all, I'll try to give as much detail as I can, but this is a somewhat vague problem. I have a very simple script that I would like to implement as a CGI script, just so I can hit a URL and get some output. However, after following a number of tutorials, I am still seeing some very odd res

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-22 Thread ALAN GAULD
> Under Start there's a ? icon that says Help and Support. Minimal info. Yes, although by exploring the links and using the Microsoft Knowledgebase panel on the left you do get more than I remembered. I just think the DOS HELP command is easier to use. However I did find a good overview on Te

Re: [Tutor] extracting a column from many files

2009-02-22 Thread Moos Heintzen
On Thu, Feb 19, 2009 at 2:41 AM, Bala subramanian wrote: > Dear friends, > > I want to extract certain 6 different columns from a many files and write it > to 6 separate output files. I took some help from the following link > > http://mail.python.org/pipermail/tutor/2004-November/033475.html > >

[Tutor] calling user defined function

2009-02-22 Thread roberto
hello i have a question which i didn't solved yet: i can define a function using the text editor provided by IDLE 3.0; then i'd like to call this function from the python prompt but when i try to do it, python warns me that function doesn't exist of course if i define the function directly using t

Re: [Tutor] extracting a column from many files

2009-02-22 Thread Moos Heintzen
For example, if you have input files: file1: 1a1 1b1 1c1 1d1 1e1 1f1 2a1 2b1 2c1 2d1 2e1 2f1 3a1 3b1 3c1 3d1 3e1 3f1 file2: 1a2 1b2 1c2 1d2 1e2 1f2 2a2 2b2 2c2 2d2 2e2 2f2 3a2 3b2 3c2 3

Re: [Tutor] calling user defined function

2009-02-22 Thread bob gailer
roberto wrote: hello i have a question which i didn't solved yet: i can define a function using the text editor provided by IDLE 3.0; then i'd like to call this function from the python prompt but when i try to do it, python warns me that function doesn't exist of course if i define the function

Re: [Tutor] calling user defined function

2009-02-22 Thread spir
Le Sun, 22 Feb 2009 22:21:22 +0100, roberto s'exprima ainsi: > hello > i have a question which i didn't solved yet: > i can define a function using the text editor provided by IDLE 3.0; > then i'd like to call this function from the python prompt > > but when i try to do it, python warns me that

Re: [Tutor] calling user defined function

2009-02-22 Thread Kent Johnson
On Sun, Feb 22, 2009 at 4:21 PM, roberto wrote: > hello > i have a question which i didn't solved yet: > i can define a function using the text editor provided by IDLE 3.0; > then i'd like to call this function from the python prompt > > but when i try to do it, python warns me that function doesn

Re: [Tutor] calling user defined function

2009-02-22 Thread Alan Gauld
"roberto" wrote i can define a function using the text editor provided by IDLE 3.0; then i'd like to call this function from the python prompt but when i try to do it, python warns me that function doesn't exist of course if i define the function directly using the >>> prompt, after that ever

[Tutor] Exercises for Classes and OOP in Python

2009-02-22 Thread Senthil Kumaran
Hello, I am looking for a good material that would provide exercises (and possibly solutions to demo exercises) that illustrates the Object Oriented Programming constructs in Python. Can pointers? TIA, Senthil ___ Tutor maillist - Tutor@python.org h

[Tutor] regex help

2009-02-22 Thread ish_ling
I have a string: 'a b c h' I would like a regex to recursively match all alpha letters that are between . That is, I would like the following list of matches: ['d', 'e', 'f', 'i', 'j'] I do not want the 'g' or the 'k' matched. I have figured out how to do this in a multiple-step proce