1 /CLOSE_FILE
$ PEEK/SAVE_SCREEN /CLOSE_FILE The /CLOSE_FILE qualifier closes any existing log file turned on with PEEK/SAVE_SCREEN/LOG, without interrupting the ongoing screen-saving. This means a watcher will still be able to get an initial full-screen display when starting to watch the terminal. Only any on-going terminal-logging is ended with SAVE_SCREEN/CLOSE_FILE. Example: PEEK> SAVE_SCREEN/CLOSE_FILE ! Close current log file.
2 /LOG_FILE
$ PEEK/SAVE_SCREEN /LOG_FILE [=file_spec] This a synonymous with the /OUTPUT_LOG_FILE qualifier. See the PEEK Commands SAVE_SCREEN Subtopic: /OUTPUT_LOG_FILE.
3 /MAX_REOPEN
$ PEEK/SAVE_SCREEN/LOG/REOPEN /MAX_REOPEN = blocks
/NOMAX_REOPEN
Specifies the approximate maximum number of blocks to which a
terminal-logging file may grow before a new version of the log file
is started, when /REOPEN is in effect.
Use /NOMAX_REOPEN to specify that any default /MAX_REOPEN value
should be ignored.
The default value for /MAX_REOPEN is taken from the logical
SAVE$MAX_REOPEN, usually defined by PEEK_DEFAULTS.COM.
Example: $ PEEK/SAVE_SCREEN/LOG/REOPEN/MAX_REOPEN=100
For more information, see the PEEK Commands SAVE_SCREEN Subtopic:
/REOPEN.
4 /MIN_REOPEN
$ PEEK/SAVE_SCREEN/LOG/REOPEN /MIN_REOPEN = blocks
/NOMIN_REOPEN
Specifies the minimum number of blocks to which a terminal-
logging file must grow before a new version of the log file is
started, when /REOPEN is in effect.
Use /NOMIN_REOPEN to specify that any default /MIN_REOPEN value
should be ignored.
The default value for /MIN_REOPEN is taken from the logical
SAVE$MIN_REOPEN, usually defined by PEEK_DEFAULTS.COM.
Example: $ PEEK/SAVE_SCREEN/LOG/REOPEN/MIN_REOPEN=10
/MIN_REOPEN is ignored for reopens done as a result of
a /TIME_OF_DAY specification.
For more information, see the PEEK Commands SAVE_SCREEN Subtopic:
/REOPEN
5 /NEW_FILE
$ PEEK/SAVE_SCREEN/LOG /[NO]NEW_FILE
Used to specify that a new terminal-logging file should be started.
Any current terminal-logging file is closed.
Example:
$ PEEK/SAVE_SCREEN/LOG=LOG.LOG ! Start logging to LOG.LOG.
$ PEEK/SAVE_SCREEN/LOG=NEWLOG.LOG/NEW_FILE
! Close LOG.LOG and start
! logging to NEWLOG.LOG.
The new file will contain the full initial contents of the screen
at the time the command is executed.
6 /OUTPUT_LOG_FILE
$ PEEK/SAVE_SCREEN /OUTPUT_LOG_FILE [=file_spec]
SAVE_SCREEN/OUTPUT_LOG_FILE[=file] is used to create a log file
containing everything output to the terminal while the screen-
saving is in effect.
The default filespec is taken from the logical SAVE$OUTPUT_LOG_FILE.
This logical may be defined system-wide by PEEK_DEFAULTS.COM, or it
may be defined in any of the logical-name tables specified in
LNM$PEEK_TABLE_SEARCH_LIST, which is defined by PEEK_DEFAULTS.COM.
See the top-level PEEK Subtopic: Defaults.
If this logical is not defined and if /OUTPUT_LOG_FILE is specified
without the optional file-spec, then PEEK will generate a log file
in the current default directory using a default log-file name of:
PEEK_TRMLOG_username_terminalname.LOG
If a log file is already being made, then it can be closed with a
$ PEEK/SAVE_SCREEN/CLOSE_FILE command.
To close the current log file and start logging to a new log file
use a $ PEEK/SAVE_SCREEN/LOG/NEW_FILE command.
The /REOPEN qualifier also affects PEEK/SAVE_SCREEN/LOG.
Terminal logging with /SAVE_SCREEN/LOG is terminated by a
PEEK/SAVE_SCREEN/CLOSE_FILE command, or a PEEK/NOSAVE_SCREEN command.
Example:
$ PEEK/SAVE /OUTPUT=SAVE_OUTPUT
Note that /LOG and /OUTPUT_LOG are synonymous.
7 /PERMANENT
$ PEEK/SAVE_SCREEN /PERMANENT
/NOPERMANENT (default)
Used to specify that the screen-saving (on AXP) or terminal-logging
(on AXP or VAX) cannot be shut off for the terminal concerned.
Example: $ PEEK/SAVE_SCREEN/PERMANENT ! (AXP-Only)
Also applies to terminal-logging on both VAX and AXP. E.g.
PEEK> SAVE_SCREEN /LOG=PERMANENT.LOG /PERMANENT
The PERMANENT qualifier disallows turning off screen-saving with the
NOSAVE_SCREEN command. If there is a log file for the screen-saving,
then the logging cannot be turned off if /PERMANENT is used.
A permanent screen-saver only goes away when the terminal itself goes
away (for LTAs etc which are deleted when the user logs off) or when
the system is shut down (for permanent terminals such as TTAs, etc.).
The /PERMANENT qualifier should be used with EXTREME CAUTION with
logging on direct-connect terminal such as TTA's, TXA's or OPA's
since with these terminals the log file will just continue to grow
and can't be turned off without rebooting the system.
/PERMANENT is mainly intended for security use on such things as
dial-up lines, where a log file of the terminal output is desired
and the system manager doesn't want the user to be able to stop
the logging by doing a NOSAVE_SCREEN or SAVE/CLOSE_FILE command.
8 /REOPEN
$ PEEK/SAVE_SCREEN/LOG /[NO]REOPEN Used to specify that new versions of a terminal-logging file should [not] be periodically opened. Example: $ PEEK/SAVE_SCREEN/LOG/REOPEN /REOPEN re-opens a new version of the log file whenever it reaches a certain number of disk blocks, or whenever a certain time of day or span of time has elapsed, providing at least a certain minimum number of blocks have been written to the file. The maximum and minimum blocks and the time of day and time span are specified using the /MAX_REOPEN, /MIN_REOPEN, /SPAN and /TIME_OF_DAY qualifiers, or by defaults for these which are specified in logical names. Each reopened log files has a copy of the initial full-screen at the time the log file was reopened. The default /REOPEN value is taken from the logical SAVE$REOPEN. /NOREOPEN is used on the command line to override a default /REOPEN value. (Note: /APPEND is ignored for PEEK/SAVE/LOG when /REOPEN is in effect.)
9 /SPAN
$ PEEK/SAVE_SCREEN/LOG/REOPEN /SPAN = minutes
/NOSPAN
Specifies the approximate time period which should elapse before
a new version of a terminal-logging file should be started, when
/REOPEN is in effect.
Use /NOSPAN to specify that any default /SPAN value should
be ignored.
The default value for this qualifier is taken from the logical
name SAVE$SPAN.
Example: $ PEEK/SAVE_SCREEN/LOG/REOPEN/SPAN=10
The number of minutes can contain a decimal point. The minimum
acceptable value is 1 minute.
For more information, see the PEEK Commands SAVE_SCREEN Subtopic:
/REOPEN
10 /TIME_OF_DAY
$ PEEK/SAVE_SCREEN/LOG/REOPEN /TIME_OF_DAY = hh:mm
/NOTIME_OF_DAY
Specifies the approximate time of day when a new version of a
terminal-logging file should be started (when /REOPEN is in
effect).
Use /NOTIME_OF_DAY to specify that any default /TIME_OF_DAY
value should be ignored.
The default value for this qualifier is taken from the logical
name SAVE$TIME_OF_DAY.
Example: $ PEEK/SAVE_SCREEN/LOG/REOPEN/TIME_OF_DAY=23:59
The above command specifies that a new log file version should
be created at 1 minute before midnight each day.
Valid values for /TIME_OF_DAY are 00:00 through 23:59.
Note that all 5 characters of the hh:mm syntax are required
in all cases. Midnight would be specfied as 00:00. (The
special value /TIME_OF_DAY=-1 is the equivalent of
/NOTIME_OF_DAY and causes the qualifier to be ignored.)
Examples: The log file will be reopened at:
/TIME_OF_DAY=00:00 12:00 AM
/TIME_OF_DAY=00:01 12:01 AM
/TIME_OF_DAY=01:00 1:00 AM
/TIME_OF_DAY=12:00 12:00 PM
/TIME_OF_DAY=14:03 2:03 PM
Any /MIN_REOPEN value is ignored when reopening a file at
the /TIME_OF_DAY specified.
For more information, see the PEEK Commands SAVE_SCREEN
Subtopic:
/REOPEN