next up previous contents
Next: The ``C'' target Up: Targets Previous: Targets   Contents

The ``tc'' target

This is the default target.

tcc outputs commands for the tc command, which configures the software-based traffic control subsystem in the Linux kernel.

These commands are written to standard output, and can be processed by a shell. Note that tcc may detect errors only after it has begun generating output, so in order to avoid partial configuration, the output should be stored in a temporary file, and only passed to the shell after tcc has completed.

Example:

#!/bin/sh
tcc ... >tmpfile || { rm -f tmpfile; exit 1; }
. tmpfile
rm -f tmpfile



Martin A. Brown 2003-11-06