Re: [Tutor] File access by os.system

2007-05-17 Thread Rikard Bosnjakovic
On 5/16/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > Not Quite, I think. I'm sorry, I missed the fact about using the tempfile. I parsed Mike's post being a sole question about sending a var-args string to os.command(). -- - Rikard - http://bos.hack.org/cv/ __

Re: [Tutor] File access by os.system

2007-05-15 Thread Luke Paireepinart
Rikard Bosnjakovic wrote: > On 5/15/07, Mike Hansen <[EMAIL PROTECTED]> wrote: > > >> Should the os.system command be something like >> command = "dsspcmbi -v %s %s" %(Pdb, temp1) >> os.system(command) >> >> ? >> > > Yes. > Not Quite, I think. >>> import tempfile >>> help(tempfile.Temp

Re: [Tutor] File access by os.system

2007-05-15 Thread Rikard Bosnjakovic
On 5/15/07, Mike Hansen <[EMAIL PROTECTED]> wrote: > Should the os.system command be something like > command = "dsspcmbi -v %s %s" %(Pdb, temp1) > os.system(command) > > ? Yes. -- - Rikard - http://bos.hack.org/cv/ ___ Tutor maillist - Tutor@pytho

Re: [Tutor] File access by os.system

2007-05-15 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Tuesday, May 15, 2007 1:44 AM > To: tutor@python.org > Subject: Re: [Tutor] File access by os.system > > > "lohith madireddy" <[EMAIL P

Re: [Tutor] File access by os.system

2007-05-15 Thread Alan Gauld
"lohith madireddy" <[EMAIL PROTECTED]> >I have files named 'x.pdb', 'y.pdb',. in one directory. I am > using python to read the files in that directory and do a system > operation on each of the file using os.system. When I use this, it > always gives an error saying 'could not read the