[newbie] Problem with os.system

calder calder at email.in.signature
Sun Mar 3 17:35:44 EST 2002


"DarkCed" <malletc3 at cti.ecp.fr> wrote:
>I would like to run a program from a python script (a source for a
>icecast server).
>The program works, but a simple two-line script with os.system('ices')
>does not. I get this message :
>"syntax error near unexpected token".
>
>If I type "ices" in the same repertory, it works...
>Shall I use another command to run my program ?
>
>Thanx
>Ced

You must be mistyping something... Your two-line script should look like this:

import os
os.system ('ices')

And that's it.

-- 
**************************
 Calder [calder at box43.pl]
        [gg 2174530]
**************************




More information about the Python-list mailing list