Consider sp.exe -hr=1 --out=std "C:\Program Files (x86)\Git\bin\ls.exe" -la executed in a directory with a couple of files\folders (10-20 in my case). The thing is ls.exe (or any other program) sends data through stdout and shuts down. Spawner is not waiting for ls.exe's stdout pipe being consumed fully and shuts down shortly after. So it's a matter of luck how much of ls output we will see.
Consider
sp.exe -hr=1 --out=std "C:\Program Files (x86)\Git\bin\ls.exe" -la
executed in a directory with a couple of files\folders (10-20 in my case). The thing is ls.exe (or any other program) sends data through stdout and shuts down. Spawner is not waiting for ls.exe's stdout pipe being consumed fully and shuts down shortly after. So it's a matter of luck how much of ls output we will see.