Message258914
That the wait failed to get the 42 exit code means that the "python" command (which may not actually be python.exe) is spawning a child process to run the command and not waiting for it to exit. Please try the following using the absolute path to python.exe:
C:\>start "title" /b /w "PATH\TO\python.exe" -c "raise SystemExit(42)"
C:\>echo %errorlevel%
42
In this case "title" is required because cmd parses the first quoted string prior to the executable as the title. Without "title" it would parse the path to python.exe as the title and try to execute "-c". |
|
Date |
User |
Action |
Args |
2016-01-25 18:08:28 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Ivan.Pozdeev |
2016-01-25 18:08:28 | eryksun | set | messageid: <1453745308.24.0.384334619926.issue26189@psf.upfronthosting.co.za> |
2016-01-25 18:08:28 | eryksun | link | issue26189 messages |
2016-01-25 18:08:28 | eryksun | create | |
|