Bug 4925 - com_pipefile to create a named pipe for sending commands from other processes
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2011-03-09 19:40 EST by Chris "Lakitu7" Schwarz
Modified: 2011-03-09 20:01:35 EST
1 user (show)

See Also:


Attachments
Implement com_pipefile as described above (5.86 KB, patch)
2011-03-09 19:40 EST, Chris "Lakitu7" Schwarz

Description Chris "Lakitu7" Schwarz 2011-03-09 19:40:15 EST
This patch adds a cvar com_pipefile that specifies a filename at which to create a named FIFO pipe while the game is running. This allows other processes/scripts/bots to easily and conveniently send commands to the running server, which otherwise can only be done quite hackishly via either netcat->rcon or screen. By comparison, this patch allows control as easily as:

echo cp The server is shutting down for maintenance > .ioq3ded_pipe
echo quit > .ioq3ded_pipe

The option is nonfunctional on Windows because the closest Windows equivalent to this functionality at the OS level appears to be rather different and not particularly useful for this purpose anyway. Tested extensively in Linux. Verified that it at least does nothing in Windows. It should work fine in other nix-like OS's but I could not test them.
Comment 1 Chris "Lakitu7" Schwarz 2011-03-09 19:40:41 EST
Created attachment 2631 [details]
Implement com_pipefile as described above
Comment 2 Thilo Schulz 2011-03-09 20:01:35 EST
applied r1921