Executing a system command

Pearu Peterson pearu at cens.ioc.ee
Wed May 22 18:03:55 EDT 2002


On 22 May 2002, jb wrote:

> I should like to execute the bash command
> 
> (cd prefix;latex file.tex;dvips file)
> 
> Can I do that with the os.system function? It seems I am having diffculties 
> with that.

What kind of difficulties? I think

  os.system('cd prefix && latex file.tex && dvips file')

should work fine.

Pearu






More information about the Python-list mailing list