Difference between revisions of "Redirect"

From BZFlagWiki
Jump to: navigation, search
(notes on redirect and piping)
 
(added categories and improved display of content)
 
Line 17: Line 17:
  
 
   bzfs -conf your/config.file | some/other/application
 
   bzfs -conf your/config.file | some/other/application
 
  
 
==See also==
 
==See also==
[http://en.wikipedia.org/wiki/Pipe_(Unix) Pipe_(Unix)]  
+
* [http://en.wikipedia.org/wiki/Pipe_(Unix) Pipe_(Unix)]
 
+
* [http://en.wikipedia.org/wiki/Redirection_(computing) Redirection_(computing)]
[http://en.wikipedia.org/wiki/Redirection_(computing) Redirection_(computing)]
+
* [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true Windows command redirection operators]
  
[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true Windows command redirection operators]
+
[[Category:Miscellaneous]]
 +
[[Category:Tutorials]]

Latest revision as of 02:05, 1 January 2017

Overview[edit]

Many of the command line applications in bzflag produce output that a user may wish to save. This is most common in the case of the BZFS server with regards to log files.

BZFS itself does not have the ability to generate a log file, so the user must use the Redirect, or Piping features of the Host Operating system.

Redirect[edit]

Systems can use the Redirect System to send the output of bzfs to a file, overwriting it's contents with.

 bzfs -conf your/config.file > your/log.file

or using the append feature.

 bzfs -conf your/config.file >> your/log.file

Pipe[edit]

The Pipe System can be used to manage the output of terminal data. Simply piping the output of bzfs into another application will cause that application to take the data as input. This can be useful for robust log notification system.s

 bzfs -conf your/config.file | some/other/application

See also[edit]