[Tutor] so.system() return values

Tim Johnson tim@johnsons-web.com
Fri Jun 13 11:33:02 2003


* Tim Peters <tim.one@comcast.net> [030612 20:39]:
> [Gus Tabares]
> > The best place to check information on standard Python modules is on
> > Python's website:
> > The module index is located at
> > http://www.python.org/doc/current/modindex.html. From the index:
> 
> The in-development docs sometimes have more up-to-date info.  In this case,
> they do, from
>     On Windows, the return value is that returned by the system shell
>     after running command, given by the Windows environment variable
>     COMSPEC:  on command.com systems (Windows 95, 98 and ME) this is always
>     0; on cmd.exe systems (Windows NT, 2000 and XP) this is the exit
>     status of the command run; on systems using a non-native shell,
>     consult your shell documentation.

  Thanks Tim. That does clarify a little more. I had read
  ...2.2/lib/os-process.html... I seem to remember from my
  windows-programming days that system() returns 0 also,

  regards

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com
      http://www.johnsons-web.com