next up previous contents
Next: MARK command Up: Command descriptions Previous: LIST command   Contents

Subsections


LOG command

Syntax

LOg file
LOg » file
LOg

Purpose

Saves a copy of your keyboard entries in a file.

Comments

The `»' option appends to an existing file, if it exists, otherwise it creates one.

Files can be nested. If you open one while another is already open, both will contain all the information.

A bare LOg closes the file. Because of this, the last line of this file is always LOg. Ordinarily, this will not be of any consequence, but if a log file is open when you use this file as command input, this will close it. If more than one LOg file is open, they will be closed in the reverse of the order in which they were opened, maintaining nesting.

See also: `>' and `<' commands.

Bugs

The file is an exact copy of what you type, so it is suitable for gnucap <file from the shell. It is NOT suitable for the < command in gnucap or the Spice-like mode gnucap file without <.

Examples

log today
Save the commands in a file today in the current directory. If today already exists, the old one is gone.

log » doit
Save the commands in a file doit. If doit already exists, it is kept, and the new data is added to the end.

log runit.bat
Use the file runit.bat.

log
Close the file. Stop saving.


next up previous contents
Next: MARK command Up: Command descriptions Previous: LIST command   Contents
Al Davis 2002-03-26