Results from os.system() different from execution at prompt
jepler at unpythonic.net
Mon Dec 29 20:17:44 CET 2003
On Mon, Dec 29, 2003 at 05:38:25PM +0100, Mathias Waack wrote:
> Enno Middelberg wrote:
> > So, the Python-executed mpeg_encode reports fewer input files. Any
> > clues why this could happen? Is there a limit on the command length
> > or so?
> Why do you think the reason for this behaviour could be truncated
> command line? You just call 'mpeg_encode mpeg.par', this line
> shouldn't be too long neither for python nor for the shell.
... and a commandline that is too long should cause a non-zero return
status, not run the program with an incorrect argument list:
>>> os.system("true x")
>>> os.system("true " + "x" * 320000)
More information about the Python-list