0

I run several game servers on a single . Many of the game servers run as . I have created to run each on startup even if I'm not logged on. I would like to be able to attach to the consoles of those apps when logged on to the server, similar to what can be done in . Perhaps I'm going about this in the wrong way. Is there a way to attach to console apps running as tasks? Is there a software tool that accommodates this sort of thing?

Update: Been searching high and low for a solution but haven't found anything yet. Have decided to write a for console app that will redirect Stdin, Stdout and Stderr of a process to a Telnet connection. Will use to run the wrapper as a .

Chrisbot
  • 67
  • 4
  • I think the typical approach for your scenario would be windows services instead of console application. You can then use any number IPC techniques to communicate with that service. The Windows Service feature itself offers a lot of the most common features needed for long-running executables. – Guillaume CR Dec 16 '16 at 21:50
  • @Gulliaume - thanks for the comment. I agree but the game servers are actually console apps. Most are _exe_ wrappers around Java apps. I run most of the servers as startup tasks for now since they are running on a leased dedicated server and I access it via RDP. To gracefully shut them down I have to open each game client and send _console commands_ to save the game and then quit the server. So, after a lot of consideration, I'd prefer to connect to them remotely using a Telnet client wherein I can access each game's original console. I will still leverage Windows service features. – Chrisbot Dec 16 '16 at 22:21

1 Answers1

0

I produced a solution: https://github.com/ccourson/Banjo

Banjo will launch a specified console application and route its streams to and from a telnet connection.

Pull requests welcome.

Chrisbot
  • 67
  • 4