Redirect

From BZFlagWiki
Revision as of 02:05, 1 January 2017 by Zehra (Talk | contribs) (added categories and improved display of content)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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]