This wiki is archived and useful information is being migrated to the main bzflag.org website

Redirect

From BZFlagWiki
Revision as of 03:50, 25 May 2009 by JeffM2501 (Talk | contribs) (notes on redirect and piping)

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

Overview

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

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

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

Pipe_(Unix)

Redirection_(computing)

Windows command redirection operators