SCAM Documentation
Tim TimeWaster <tim@cuba.xs4all.nl>
Command-line Options
Usage:
scam
[-i infile]
[-o outfile]
[-e errfile]
[-s ]
[-b ]
[-t mode]
[-h ]
[-v ]
-i infile
-
use infile for input. This switch can be used to read from a
script, or to read from a fifo when used by a front-end.
-o outfile
-
use outfile for output. This switch can be used to write output to
a file, or to write to a fifo when used by a front-end.
-e errfile
-
use errfile for errors. This switch can be used to write errors to
a file, or to write to a fifo when used by a front-end.
-s
-
run scam in silent (script) mode. No startup banner and no prompt will be
shown. Use this switch when running a script or when invoking SCAM from a
front-end.
-b
-
buffer SCAM output and SCAM error. Normally, SCAM's output and error are not
buffered, but sent directly. This is useful if the output or error is sent to
a fifo, because then the process reading from this fifo will immediately get
its input. In interactive mode however, you will see every byte of output
written to the screen. If you are bothered by this, use this switch.
NOTE: in interactive mode, standard error is used, so error will then be
unbuffered by default.
-t mode
-
show card output formatted in mode mode.
Mode 0 is normal mode, hexadecimal output only, with no formatting. This mode
is used by the Perl front-end. This is the default
mode.
Mode 1 is a two column mode: the first column contains hexadecimal output, the
second contains printable ASCII output. The width of the columns is adjusted to
the screen width, which was specified during compilation.
Mode 2 shows a line of hexadecimal output, followed by a line of printable
ASCII output. The line length is adjusted to the screen width, which was
specified during compilation.
Mode 3 shows printable ASCII output only. The line length is adjusted to the
screen width, which was specified during compilation.
-h
- show an overview of the command-line options and exit.
-v
- output version information and exit.