os.execl()

Brian E Gallew geek+ at andrew.cmu.edu
Mon Aug 27 10:45:29 EDT 2001


Then <200108271401.f7RE1P67003979 at smtp6.andrew.cmu.edu>, Brian E Gallew wrote: spoke up and said:
> The os.spawnv() function is simpler to use:
> 
>   for tar_file in tar_file_list:
>       os.spawnv(os.P_WAIT,"/bin/tar",("xzvf",tar_file))
> 
> I haven't tested this, so I'm sure there's a typo somewhere...

Yes, os.spawnv() is easier to use, but it's only available on Windows.
os.fork() is only available on Unix.  This restriction is noted in the
1.5.2 documentation (which I'm still using).




More information about the Python-list mailing list