Re: [Tutor] help with erros using subprocess module

2006-05-12 Thread Michael Lange
On Thu, 11 May 2006 10:59:19 -0700 (PDT) Jerome Jabson <[EMAIL PROTECTED]> wrote: > > Am I missing some module you are referencing with > "types"? > Hi Jerome, that's right, try import types first. Michael ___ Tutor maillist - Tutor@python.o

Re: [Tutor] help with erros using subprocess module

2006-05-11 Thread Jerome Jabson
Hi Bo, Thank you very much for all your help!! But I'm having some problems with the line of code you recommended: if isinstance(cmd, types.StringTypes): cmd = cmd.split(' ') I'm getting the following error: NameError: global name 'types' is not defined As you instructed, I put in the

[Tutor] help with erros using subprocess module

2006-05-10 Thread Jerome Jabson
Hi Bo, Jerome Jabson 写道: > Hi, > > I've been trying to write a wrapper around some shells > scripts using the subprocess module. But I'm getting > errors I quite don't know how to debug. I've only been > writing Python for a few months and starting processes > are new to me. Here's my code: >

Re: [Tutor] help with erros using subprocess module

2006-05-10 Thread Bo Yang
Jerome Jabson 写道: > Hi, > > I've been trying to write a wrapper around some shells > scripts using the subprocess module. But I'm getting > errors I quite don't know how to debug. I've only been > writing Python for a few months and starting processes > are new to me. Here's my code: > > import os

[Tutor] help with erros using subprocess module

2006-05-09 Thread Jerome Jabson
Hi, I've been trying to write a wrapper around some shells scripts using the subprocess module. But I'm getting errors I quite don't know how to debug. I've only been writing Python for a few months and starting processes are new to me. Here's my code: import os import re import subprocess #