Re: Trouble with os.system

2010-02-03 Thread Charles-Pierre Astolfi
That was it ! What a stupid error... Thank you ! -- Cp On Wed, Feb 3, 2010 at 20:13, Jerry Hill wrote: > On Wed, Feb 3, 2010 at 12:58 PM, Cpa wrote: >> Sure. >> >> import sys,re,os >> files2create = sys.argv[1:] >> os.system('mkdir tmp') >> >> # Some code to create the .tex >> >> # Compile t

Re: Trouble with os.system

2010-02-03 Thread Jerry Hill
On Wed, Feb 3, 2010 at 12:58 PM, Cpa wrote: > Sure. > > import sys,re,os > files2create = sys.argv[1:] > os.system('mkdir tmp') > > # Some code to create the .tex > > # Compile tex files > os.system('for file in tmp/*; do pdflatex "$file"; done') > > Pretty simple, alas. I think your bug is in th

Re: Trouble with os.system

2010-02-03 Thread Cpa
> > > Pretty simple, alas. > > > -- > > Cpa > > > On 3 fév, 18:54, Gerald Britton wrote: > >> Can you post your code? > > >> On Wed, Feb 3, 2010 at 12:47 PM, Cpa wrote: > >> > Hi there, > > >> > I'm having some tr

Re: Trouble with os.system

2010-02-03 Thread Gerald Britton
n 3 fév, 18:54, Gerald Britton wrote: >> Can you post your code? >> >> >> >> On Wed, Feb 3, 2010 at 12:47 PM, Cpa wrote: >> > Hi there, >> >> > I'm having some trouble with os.system on Fedora 12. >> > I have a bunch of .tex files

Re: Trouble with os.system

2010-02-03 Thread Cpa
ou post your code? > > > > On Wed, Feb 3, 2010 at 12:47 PM, Cpa wrote: > > Hi there, > > > I'm having some trouble with os.system on Fedora 12. > > I have a bunch of .tex files in tmp/ and I want to compile them. > > In my shell, the following com

Re: Trouble with os.system

2010-02-03 Thread Gerald Britton
Can you post your code? On Wed, Feb 3, 2010 at 12:47 PM, Cpa wrote: > Hi there, > > I'm having some trouble with os.system on Fedora 12. > I have a bunch of .tex files in tmp/ and I want to compile them. > In my shell, the following commands work perfectly : 'for

Trouble with os.system

2010-02-03 Thread Cpa
Hi there, I'm having some trouble with os.system on Fedora 12. I have a bunch of .tex files in tmp/ and I want to compile them. In my shell, the following commands work perfectly : 'for file in tmp/ *.tex; do pdflatex "$file"; done'. But if I use the same command u