0

I am trying to write a wrapper for RUST game server using python and starting it with subprocess, it works problem is console output is all over the window only top line gets updated on stdout.

I am not reading and printing stdout as for some reason program (RustDedicated) wont accept stdin to write console commands.

How can i run RustDedicated.exe inside the wrapper the way batch file does so console gets displayed correctly?

Expected console output: output Console output i am getting: output

The code:

args = f'{server} -batchmode {serverConfig}'
subprocess.call(args, shell=False)

Note: server referrs to RustDedicated.exe's location, args are just additional server arguments.

Thanks in advance, also developer.valvesoftware.com/wiki/Rust_Dedicated_Server not the programming language.

Hai Vu
  • 37,849
  • 11
  • 66
  • 93
ThisIsEcho
  • 45
  • 1
  • 1
  • 9

0 Answers0